Build Custom Chatbot

Create a custom ChatGPT bot with your training data

Create a custom ChatGPT bot

You can turn your chat interface into a custom chatbot by uploading your training data from Admin Panel.

Here’s how to do it:

Step 1: Create a Chat Instance

In case you haven’t created a chat instance yet, please Create a new Chat Instance first.

Create a Chat Instance

Step 2: Setup training documents for your chat instance.

Go to the Admin PanelTraining Data. Here you can setup your training documents by two ways:

  1. Upload files up to 25MB per file. Supported format: PDF, DOCX, TXT, CSV.
  2. Pull data from other services (now: Notion, Intercom, coming soon: Google Drive, Zapier, Confluence, etc.)
  3. Set a system instruction (limited by the model context length)

You can combine the system instruction and your data sources to better guide the chatbot’s responses:

Setup training documents for your chat instance

Step 3: Test Your Chatbot

Do some tests to ensure your ChatGPT bot provide expected results.

Test Your Chatbot

Step 4: Embed the Chatbot on Your Website

There are 2 ways you can embed this chatbot into your website:

  1. Embed using an iFrame tag

This helps you embed the chatbot directly into your webpage using an iframe tag. Here's an example code:

<iframe src="https://yourinstanceURL.com/" title="TypingMind"> </iframe>

Embed using an iFrame tag

  1. Embed as a chat widget:

You can also embed the chatbot as a widget on your website. Here's how:

  • Go to Chat Widget
  • Customize your widget position and welcome messages
  • Copy code and input to the <head> tag of your website

Embed as a chat widget

Customize your widget

To allow users to use your chatbot publicly, you can enable Public Mode for your Chat Instance, here's the detail: Access Control