<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
    <channel>
        <title>Chat SDK on Producthunt daily</title>
        <link>https://producthunt.programnotes.cn/en/tags/chat-sdk/</link>
        <description>Recent content in Chat SDK on Producthunt daily</description>
        <generator>Hugo -- gohugo.io</generator>
        <language>en</language>
        <lastBuildDate>Mon, 14 Apr 2025 15:28:36 +0800</lastBuildDate><atom:link href="https://producthunt.programnotes.cn/en/tags/chat-sdk/index.xml" rel="self" type="application/rss+xml" /><item>
        <title>ai-chatbot</title>
        <link>https://producthunt.programnotes.cn/en/p/ai-chatbot/</link>
        <pubDate>Mon, 14 Apr 2025 15:28:36 +0800</pubDate>
        
        <guid>https://producthunt.programnotes.cn/en/p/ai-chatbot/</guid>
        <description>&lt;img src="https://images.unsplash.com/photo-1617036213219-533c4492dc49?ixid=M3w0NjAwMjJ8MHwxfHJhbmRvbXx8fHx8fHx8fDE3NDQ2MTU2OTl8&amp;ixlib=rb-4.0.3" alt="Featured image of post ai-chatbot" /&gt;&lt;h1 id=&#34;vercelai-chatbot&#34;&gt;&lt;a class=&#34;link&#34; href=&#34;https://github.com/vercel/ai-chatbot&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;
    &gt;vercel/ai-chatbot&lt;/a&gt;
&lt;/h1&gt;&lt;a href=&#34;https://chat.vercel.ai/&#34;&gt;
  &lt;img alt=&#34;Next.js 14 and App Router-ready AI chatbot.&#34; src=&#34;app/(chat)/opengraph-image.png&#34;&gt;
  &lt;h1 align=&#34;center&#34;&gt;Chat SDK&lt;/h1&gt;
&lt;/a&gt;
&lt;p align=&#34;center&#34;&gt;
    Chat SDK is a free, open-source template built with Next.js and the AI SDK that helps you quickly build powerful chatbot applications.
&lt;/p&gt;
&lt;p align=&#34;center&#34;&gt;
  &lt;a href=&#34;https://chat-sdk.dev&#34;&gt;&lt;strong&gt;Read Docs&lt;/strong&gt;&lt;/a&gt; ·
  &lt;a href=&#34;#features&#34;&gt;&lt;strong&gt;Features&lt;/strong&gt;&lt;/a&gt; ·
  &lt;a href=&#34;#model-providers&#34;&gt;&lt;strong&gt;Model Providers&lt;/strong&gt;&lt;/a&gt; ·
  &lt;a href=&#34;#deploy-your-own&#34;&gt;&lt;strong&gt;Deploy Your Own&lt;/strong&gt;&lt;/a&gt; ·
  &lt;a href=&#34;#running-locally&#34;&gt;&lt;strong&gt;Running locally&lt;/strong&gt;&lt;/a&gt;
&lt;/p&gt;
&lt;br/&gt;
&lt;h2 id=&#34;features&#34;&gt;Features
&lt;/h2&gt;&lt;ul&gt;
&lt;li&gt;&lt;a class=&#34;link&#34; href=&#34;https://nextjs.org&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;
    &gt;Next.js&lt;/a&gt; App Router
&lt;ul&gt;
&lt;li&gt;Advanced routing for seamless navigation and performance&lt;/li&gt;
&lt;li&gt;React Server Components (RSCs) and Server Actions for server-side rendering and increased performance&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&lt;a class=&#34;link&#34; href=&#34;https://sdk.vercel.ai/docs&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;
    &gt;AI SDK&lt;/a&gt;
&lt;ul&gt;
&lt;li&gt;Unified API for generating text, structured objects, and tool calls with LLMs&lt;/li&gt;
&lt;li&gt;Hooks for building dynamic chat and generative user interfaces&lt;/li&gt;
&lt;li&gt;Supports xAI (default), OpenAI, Fireworks, and other model providers&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&lt;a class=&#34;link&#34; href=&#34;https://ui.shadcn.com&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;
    &gt;shadcn/ui&lt;/a&gt;
&lt;ul&gt;
&lt;li&gt;Styling with &lt;a class=&#34;link&#34; href=&#34;https://tailwindcss.com&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;
    &gt;Tailwind CSS&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Component primitives from &lt;a class=&#34;link&#34; href=&#34;https://radix-ui.com&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;
    &gt;Radix UI&lt;/a&gt; for accessibility and flexibility&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Data Persistence
&lt;ul&gt;
&lt;li&gt;&lt;a class=&#34;link&#34; href=&#34;https://vercel.com/marketplace/neon&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;
    &gt;Neon Serverless Postgres&lt;/a&gt; for saving chat history and user data&lt;/li&gt;
&lt;li&gt;&lt;a class=&#34;link&#34; href=&#34;https://vercel.com/storage/blob&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;
    &gt;Vercel Blob&lt;/a&gt; for efficient file storage&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&lt;a class=&#34;link&#34; href=&#34;https://authjs.dev&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;
    &gt;Auth.js&lt;/a&gt;
&lt;ul&gt;
&lt;li&gt;Simple and secure authentication&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&#34;model-providers&#34;&gt;Model Providers
&lt;/h2&gt;&lt;p&gt;This template ships with &lt;a class=&#34;link&#34; href=&#34;https://x.ai&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;
    &gt;xAI&lt;/a&gt; &lt;code&gt;grok-2-1212&lt;/code&gt; as the default chat model. However, with the &lt;a class=&#34;link&#34; href=&#34;https://sdk.vercel.ai/docs&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;
    &gt;AI SDK&lt;/a&gt;, you can switch LLM providers to &lt;a class=&#34;link&#34; href=&#34;https://openai.com&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;
    &gt;OpenAI&lt;/a&gt;, &lt;a class=&#34;link&#34; href=&#34;https://anthropic.com&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;
    &gt;Anthropic&lt;/a&gt;, &lt;a class=&#34;link&#34; href=&#34;https://cohere.com/&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;
    &gt;Cohere&lt;/a&gt;, and &lt;a class=&#34;link&#34; href=&#34;https://sdk.vercel.ai/providers/ai-sdk-providers&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;
    &gt;many more&lt;/a&gt; with just a few lines of code.&lt;/p&gt;
&lt;h2 id=&#34;deploy-your-own&#34;&gt;Deploy Your Own
&lt;/h2&gt;&lt;p&gt;You can deploy your own version of the Next.js AI Chatbot to Vercel with one click:&lt;/p&gt;
&lt;p&gt;&lt;a class=&#34;link&#34; href=&#34;https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2Fvercel%2Fai-chatbot&amp;amp;env=AUTH_SECRET&amp;amp;envDescription=Generate%20a%20random%20secret%20to%20use%20for%20authentication&amp;amp;envLink=https%3A%2F%2Fgenerate-secret.vercel.app%2F32&amp;amp;project-name=my-awesome-chatbot&amp;amp;repository-name=my-awesome-chatbot&amp;amp;demo-title=AI%20Chatbot&amp;amp;demo-description=An%20Open-Source%20AI%20Chatbot%20Template%20Built%20With%20Next.js%20and%20the%20AI%20SDK%20by%20Vercel&amp;amp;demo-url=https%3A%2F%2Fchat.vercel.ai&amp;amp;products=%5B%7B%22type%22%3A%22integration%22%2C%22protocol%22%3A%22ai%22%2C%22productSlug%22%3A%22grok%22%2C%22integrationSlug%22%3A%22xai%22%7D%2C%7B%22type%22%3A%22integration%22%2C%22protocol%22%3A%22storage%22%2C%22productSlug%22%3A%22neon%22%2C%22integrationSlug%22%3A%22neon%22%7D%2C%7B%22type%22%3A%22blob%22%7D%5D&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;
    &gt;&lt;img src=&#34;https://vercel.com/button&#34;
	
	
	
	loading=&#34;lazy&#34;
	
		alt=&#34;Deploy with Vercel&#34;
	
	
&gt;&lt;/a&gt;&lt;/p&gt;
&lt;h2 id=&#34;running-locally&#34;&gt;Running locally
&lt;/h2&gt;&lt;p&gt;You will need to use the environment variables &lt;a class=&#34;link&#34; href=&#34;.env.example&#34; &gt;defined in &lt;code&gt;.env.example&lt;/code&gt;&lt;/a&gt; to run Next.js AI Chatbot. It&amp;rsquo;s recommended you use &lt;a class=&#34;link&#34; href=&#34;https://vercel.com/docs/projects/environment-variables&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;
    &gt;Vercel Environment Variables&lt;/a&gt; for this, but a &lt;code&gt;.env&lt;/code&gt; file is all that is necessary.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;Note: You should not commit your &lt;code&gt;.env&lt;/code&gt; file or it will expose secrets that will allow others to control access to your various AI and authentication provider accounts.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;ol&gt;
&lt;li&gt;Install Vercel CLI: &lt;code&gt;npm i -g vercel&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Link local instance with Vercel and GitHub accounts (creates &lt;code&gt;.vercel&lt;/code&gt; directory): &lt;code&gt;vercel link&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Download your environment variables: &lt;code&gt;vercel env pull&lt;/code&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;div class=&#34;chroma&#34;&gt;
&lt;table class=&#34;lntable&#34;&gt;&lt;tr&gt;&lt;td class=&#34;lntd&#34;&gt;
&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code&gt;&lt;span class=&#34;lnt&#34;&gt;1
&lt;/span&gt;&lt;span class=&#34;lnt&#34;&gt;2
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;
&lt;td class=&#34;lntd&#34;&gt;
&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;pnpm install
&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;pnpm dev
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;p&gt;Your app template should now be running on &lt;a class=&#34;link&#34; href=&#34;http://localhost:3000&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;
    &gt;localhost:3000&lt;/a&gt;.&lt;/p&gt;
</description>
        </item>
        
    </channel>
</rss>
