Building a GPT chatbot

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

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 an AI model

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

As we want to answer questions from the website , let’s build the AI model.

  • Go to AI Studio > Build AI model > URL

  • Enter the domain

  • Hit “Crawl” and wait until the URLs are listed

  • Delete the unwanted URLs from the list (So that our model does not have unwanted data)

  • Hit “Train” to start training the AI model

Step 2: Build a bot

Next, we need to build a bot that will speak with the visitor and use this AI model to fetch the answer to questions asked.

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

Step 3: Adding the AI model

After the trigger action block, we will add the “AI model” action block.

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

  • Choose the “AI model” we created

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


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

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 model 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 model 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!”

  • 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 +1 737 258 7485 for more assistance.”

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.

Last updated