Skip to content

Commit ec860cc

Browse files
authored
Merge pull request #36 from chatbotkit:next
Next
2 parents a7bb574 + f1d296a commit ec860cc

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -346,6 +346,7 @@ Some notable examples include:
346346

347347
| Platform | Example | Description |
348348
| ------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
349+
| Next.js | [Authenticated Chat with Contacts](https://github.com/chatbotkit/node-sdk/tree/main/examples/nextjs/pages/auth-chat) | Demonstrates ChatBotKit Contacts for managing end-users with authentication. Shows how to use fingerprints to track users, enable personalized experiences, and unlock authentication management for 3rd-party integrations like Google and Microsoft. |
349350
| Next.js | [Stateless Chat (App Router + RSC + Functions + Function Request)](https://github.com/chatbotkit/node-sdk/tree/main/examples/nextjs/app/stateless-chat-rsc-functions-request) | A stateless chatbot example, where the conversation is managed by the client and the server. This example uses the App Router and Server Actions as well AI functions with function requests. This is a powerful example to demonstrate the full capabilities of the ChatBotKit conversational AI platform. |
350351
| Next.js | [Stateless Chat (App Router + RSC + Functions)](https://github.com/chatbotkit/node-sdk/tree/main/examples/nextjs/app/stateless-chat-rsc-functions) | A stateless chatbot example, where the conversation is managed by the client and the server. This example uses the App Router and Server Actions as well AI functions. |
351352
| Next.js | [Stateless Chat (App Router + RSC)](https://github.com/chatbotkit/node-sdk/tree/main/examples/nextjs/app/stateless-chat-rsc) | A stateless chatbot example, where the conversation is managed by the client and the server. This example uses the App Router and Server Actions. |

examples/nextjs/pages/auth-chat/pages/api/conversation/complete.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,9 @@ export default async function handler(req) {
5555

5656
messages,
5757

58+
// ChatBotKit will automatically create or retrieve the contact based on
59+
// the fingerprint, ensuring all conversations are properly tracked.
60+
5861
contactId: {
5962
fingerprint,
6063

0 commit comments

Comments
 (0)