m-chat
Status
  • 👋Welcome!
  • 🏁 Getting Started
    • Building a chatbot
    • Testing a chatbot
    • Publishing your bot
      • Web
        • Embed chatbots on website
      • WhatsApp
        • Meta
        • 360Dialog
        • GupShup
        • Twillo
        • TechAlpha
      • Instagram
      • Facebook Messenger
      • SMS
      • Mobile App
    • Utility Tools
    • Contacts
      • Scheduling a Contact Report
      • Exporting a Contact List
    • Chatbot Appearance
      • Custom CSS
      • Image dimensions
      • Pop-up messages
  • BOT BUILDER
    • Action blocks
      • Trigger
      • Send message
      • Collect input
      • Buttons
      • Reply buttons
      • Carousel
      • Answer AI
      • Set AI
      • List
      • Send an email
      • Condition
      • Dynamic data
      • Talk to human
      • Javascript
      • Webhook
      • Jump
      • Flow
      • Options
      • Collect file
      • Form
      • Calendar
      • Delay
      • Codeblock
      • Slider
      • Image gallery
      • Send WhatsApp
      • Send SMS
      • Send Email
      • Send Status
      • WhatsApp flow
      • Catalogue
    • Outbound bots
      • Building Ongoing Campaign
      • Building One Off Campaign
    • Variables
    • Cloning bots
    • Connecting action blocks
    • Creating a loop
  • ✨ AI STUDIO
    • Building a GPT chatbot
    • Knowledge base
    • Custom Answers
    • Functional call
    • Prompts
    • Tokens
    • Refresh frequency
  • 💬 LIVE CHAT
    • Overview
    • Building a bot with live chat
    • Creating views
    • Adding Labels
    • Saved replies
    • Settings
  • 🔗 Integrations
    • HTTP request
    • Events
  • 💬 WhatsApp Business API
    • Getting a WhatsApp API
      • Getting WhatsApp API (Old approach)
      • Sandbox WhatsApp API
    • Facebook Business Manager (FBM) Verification
    • Creating a WhatsApp Template
    • Cost
    • Messaging Limits, Quality Rating
    • Official Business Account (Green tick verification)
  • 📊 Reporting
    • Chatbot Analytics
    • Agent Analytics
    • Outbound analytics
    • Link analytics
    • Weekly email report
  • 🛠️ Troubleshooting
    • Getting notification for leads
    • JS functions to trigger chat widget
    • Setting up link tracking
    • How do I hard refresh my browser?
    • Notifications
    • Tracking Facebook Pixel
    • Inviting teammates
    • Teams
  • 🧑‍💻 Support
    • Creating a ticket
    • Book a demo
    • Purchase a subscription
    • Cancelling a subscription
    • Refund policy
    • Reset Password
    • Deleting account
Powered by GitBook
On this page
  • Step 1: Creating a knowledge base
  • Step 2: Build a bot
  • Step 3: Adding the Answer AI action block
  • Instructions:
  • Step 4: Adding fallback measures
  1. ✨ AI STUDIO

Building a GPT chatbot

GPT chatbots are smart bots that answer questions from a data source.

PreviousCreating a loopNextKnowledge base

Last updated 6 months ago

GPT chatbots are all the rage these days, thanks to ChatGPT.

ChatGPT has opened a new way of asking questions and getting answers – that are accurate, brief, and quick.

Here are the steps to build your own GPT chatbot:

As an example, we are going to build a GPT chatbot for a website and answer users questions. If the bot does not know the answer, we will share the customer support details.

Step 1: Creating a knowledge base

The fundamental of a GPT chatbot is creating a knowledge base that is trained with the information you want it to answer from.

As we want to answer questions from the website www.m-chat.ai , let’s build the knowledge base.

  • Go to AI Studio > Add Knowledge base > Add data source

  • Choose URL as the data source

  • Enter the domain

  • Hit 'Train' and wait until all URL(s) are being fetched

Step 2: Build a bot

Next, we need to build a bot that will speak with the visitor and use this knowledge base to fetch the answers to questions asked.

Go to Bot Builder > Build a bot > Inbound > Web

Step 3: Adding the Answer AI action block

After the trigger action block, we will add the 'Answer AI' action block.

  • Add a welcome question like “Hey there! What can I help you with today?”

  • Choose the “Knowledge base” we created

Also, we will configure the 'Answer AI' block as per our needs. For this example, I will use the following:

Instructions:

Instructions guide the AI on how you want the answer to be generated. Write a clear and concise instruction.

“I want you to act as a support agent. Your name is "AI Assistant". You will provide me with answers from the given info. If the answer is not included, say exactly "Hmm, I am not sure." and stop after that. Refuse to answer any question not about the info. Never break character.”

All other advanced settings are kept as it is. You can choose to tweak it if needed.

Step 4: Adding fallback measures

Not always will the AI answer your question. Primarily, because it may not have all the data to answer it, or the question is quite vague to generate an answer.

In any case, it is important to always define fallback measures to help users get assistance.

In this example, after the AI generates the answer, we will try to seek an acknowledgement from the user whether this answer helped or not.

Click on the success path and add “Add another block”.

Here we will add a button block with the message “Did this answer your question?” with the following options:

  • Yes - Ends the flow with a thank you message “Glad we could help!”

This way, the user always has a secondary way of getting the answer if the GPT fails. You can even extend the failure flow to collect details of their problems and create a ticket in your support systems or notify your team via email.

No - Apologise and share support details like “Sorry we couldn’t answer your question. Feel free to reach out to us at or call us at for more assistance.”

info@m-chat.co.za
031 9427907
www.m-chat.ai
www.m-chat.ai