Code samples

Browse example projects and integrations

For AI agents: Find a documentation index at https://talkjs.com/llms.txt (full content at https://talkjs.com/llms-full.txt). Get a markdown version of any page by appending .md to its URL path.
View as Markdown
(optional)

Filter

63 code samples

Sorted A–Z
GitHub

Android file upload

How to implement file upload support in Android's WebView.

Android
GitHub

Anonymize user data

Anonymize user data using the REST API.

Classic JavaScript SDKREST API
GitHub

Archive conversations

Add the option to archive a conversation to your chat using webhooks and the REST API.

Custom featuresClassic JavaScript SDKREST APIWebhooks
GitHub

Automatic away messages

Set an automatic away message using the REST API.

Custom featuresClassic JavaScript SDKREST API
GitHub

Channel list

Add a channel list like on Slack or Discord to your chat.

Custom featuresClassic JavaScript SDK
GitHub

ChatGPT integration

Add a ChatGPT-powered chatbot to your chat with the OpenAI API.

AIClassic JavaScript SDKREST APIWebhooks
GitHub

Claude integration

Add Claude to your chat TalkJS chat with the Anthropic API.

AIClassic JavaScript SDKREST APIWebhooks
GitHub

Conversation tabs

Add the option to open conversations in separate tabs to your chat.

Custom featuresClassic JavaScript SDK
GitHub

Create a new conversation

Add a button to a create a new conversation to your chat.

Custom featuresClassic JavaScript SDKREST API
GitHub

Delete a conversation

Add the option to delete a conversation to your chat, using the REST API.

Custom featuresClassic JavaScript SDKREST API
GitHub

Direct messages

Build a direct message chat with a contact list using TalkJS.

Custom featuresClassic JavaScript SDK
GitHub

Django gaming chat

Add chat into a Django gaming app with TalkJS.

Classic JavaScript SDKPython
GitHub

Email signup form

Add an email signup form to your Vue chat app.

Custom featuresClassic JavaScript SDKVue
GitHub

Export your chat data

Export all your chat data using Node.js and the REST API.

Classic JavaScript SDKREST API
GitHub

Forward messages

Add the option to forward messages to your chat.

Custom featuresClassic JavaScript SDKREST API
GitHub

Gemini integration

Add AI to your chat using Google's Gemini.

AIClassic JavaScript SDKREST APIWebhooks
GitHub

GIF picker

Add a GIF picker to your chat with Giphy.

Custom featuresClassic JavaScript SDKREST API
GitHub

Hidden users

Add a hidden user tor you chat, for example for support agents or admins.

Custom featuresClassic JavaScript SDK
GitHub

Hide messages

Add the option to hide messages for certain users to your chat.

Custom featuresClassic JavaScript SDKPHP
GitHub

Inbox tabs

Add tabs for chats, contacts, and groups to your inbox.

Custom featuresClassic JavaScript SDK
GitHub

Like Airbnb

Build a messaging inbox like on Airbnb using TalkJS.

Classic JavaScript SDKSimilar to
GitHub

Like LinkedIn

Build a messaging center like on LinkedIn using TalkJS.

Classic JavaScript SDKSimilar to
GitHub

Like UpWork

Build a chat like on Upwork using TalkJS.

Classic JavaScript SDKSimilar to
GitHub

Like WhatsApp

Build a chat app like WhatsApp using TalkJS.

Classic JavaScript SDKSimilar to
GitHub

Like X

Build direct messages like on X (formerly Twitter) with TalkJS.

Similar toClassic JavaScript SDK
GitHub

Like YouTube

Build a live comments section like on YouTube Live with TalkJS.

Similar toClassic JavaScript SDK
GitHub

Mark conversation as answered

Add a the option to mark a conversation as answered to your chat.

Custom featuresClassic JavaScript SDKREST APIWebhooks
GitHub

Message center

Build a message center with TalkJS.

Custom featuresClassic JavaScript SDK
GitHub

Migrate to TalkJS from Sendbird

A script to import your Sendbird data into TalkJS.

Classic JavaScript SDKMigrate to TalkJSREST API
GitHub

Mute conversations

Add the option to mute a conversation to your chat.

Custom featuresClassic JavaScript SDK
GitHub

Polls

Add polls to your chat.

Custom featuresClassic JavaScript SDK
GitHub

Pop-up inbox

Build a conversation list inbox inside a pop-up element.

Custom featuresClassic JavaScript SDK
GitHub

Product carousel

Add a product carousel to your chat.

Custom featuresClassic JavaScript SDKREST API
GitHub

Profile links

Add user profile links to your chat.

Custom featuresClassic JavaScript SDK
GitHub

Read-only conversations

Add the option to set a conversation to read-only to your chat.

Custom featuresClassic JavaScript SDK
GitHub

Shard a conversation

Shard a conversation for large group chats or livestreams.

Custom featuresClassic JavaScript SDK
GitHub

Styling with custom data

Use custom data to style your chat.

Custom featuresClassic JavaScript SDK
GitHub

Support chat

Build a support chat with TalkJS.

Custom featuresClassic JavaScript SDK
GitHub

TalkJS and Android

How to embed TalkJS into a WebView using Android.

Android
GitHub

TalkJS and Angular

Add chat to your Angular app with TalkJS.

AngularClassic JavaScript SDK
GitHub

TalkJS and Blazor

Add chat to your Blazor app with TalkJS.

Classic JavaScript SDK.NET
GitHub

TalkJS and Django

Add chat to your Django app with TalkJS.

Classic JavaScript SDKPython
GitHub

TalkJS and Flask

Add chat into your Flask app with TalkJS.

Classic JavaScript SDKPython
GitHub

TalkJS and Flutter

Add chat to your Flutter app with TalkJS.

Flutter
GitHub

TalkJS and Laravel

Add chat to your Laravel app with TalkJS.

Classic JavaScript SDKPHP
GitHub

TalkJS and Next.js

Add chat to your Next.js app with TalkJS.

Classic React SDK
GitHub

TalkJS and Node.js

Add chat to your Node.js app with TalkJS.

Classic JavaScript SDK
GitHub

TalkJS and Rails

Add chat to your Rails app with TalkJS.

Classic JavaScript SDKRuby
GitHub

TalkJS and React

Add chat to your React app with TalkJS.

Classic React SDK
GitHub

TalkJS and React Native (with React Native Navigation)

Add chat to your React Native app with TalkJS, using the React Native Navigation library.

React NativeClassic JavaScript SDK
GitHub

TalkJS and React Native (with React Navigation)

Add chat to your React Native app with TalkJS, using the React Navigation library.

React NativeClassic JavaScript SDK
GitHub

TalkJS and Spring Boot

Add chat to your Spring Boot app with TalkJS.

JavaClassic JavaScript SDK
GitHub

TalkJS and Svelte

Integrate chat into your Svelte app using SvelteKit.

SvelteClassic JavaScript SDK
GitHub

TalkJS and Vue

Example code for the Vue getting started guide.

Classic JavaScript SDKVue
GitHub

Team chat

Build a team chat like Slack or Team, using TalkJS.

Classic React SDK
GitHub

Team chat with reply threads

Build a team chat with reply threads.

Classic React SDK
GitHub

Threads

Add the option to reply in threads to your chat using the REST API.

Custom featuresClassic JavaScript SDKREST API
GitHub

Update conversation details

Edit the title and image of a conversation using the REST API.

Classic JavaScript SDKREST API
GitHub

Visitor chat

Allow visitors to join your chat without registering for an account.

Custom featuresClassic JavaScript SDKPHP
GitHub

Webhooks with ngrok

Receive webhook events locally with ngrok.

Classic JavaScript SDKWebhooks
GitHub

Webhooks with Node.js

Use webhooks with your TalkJS chat using Node.js.

Classic JavaScript SDKWebhooks
GitHub

Webhooks with PHP

Use webhooks with your TalkJS chat using PHP.

PHPWebhooks
GitHub

Zoom integration

Start Zoom calls directly from your chat.

Custom featuresClassic JavaScript SDKREST API