5+ ways to add a GPT based chatbot to your website

Here are some ways you can add a GPT-based chatbot to your website:

1 Use Dialogflow ES Messenger

You can use Dialogflow ES Messenger as a “front end” for your GPT chatbot.

It is quite easy to build this bot.

Create a new agent. This will automatically create two default intents – a Default Welcome Intent and a Default Fallback Intent.

In the Default Fallback Intent, call your webhook code and relay the user’s question to the GPT API

Relay the response back to the user inside the Dialogflow ES Messenger chat window

The big problem with this approach is that as of August 2023, the latency of the GPT API is higher than the 5 seconds which is allowed in Dialogflow ES.

2 Use Dialogflow CX Messenger

The next option is to use Dialogflow CX Messenger – which is an built-in integration that Dialogflow CX provides.

Unlike the ES integration, the Dialogflow CX can tolerate much larger latencies because you can increase the timeout of the webhook.

Typically, the responses from the GPT API do return within 10 seconds. (The maximum value you can set inside Dialogflow CX is 30 seconds).

As a result, the somewhat high latencies of the GPT API can still be integrated into Dialogflow CX.

Please note that unlike Dialogflow ES, there is no free tier in Dialogflow CX, and every message incurs a cost.

(But you can get a $600 credit towards your account to try CX)

Zoho SalesIQ

The remaining items in this list all use SalesIQ, which is a live chat software provided by Zoho.

It allows you to combine a chatbot into the live chat widget, which means you get a lot of bells-and-whistles that you don’t get in the Dialogflow Messenger integration. (Plus it seamlessly integrates with their CRM, which is a much requested feature from people who are building website chatbots).

In practice, this means Zoho SalesIQ is a much better option as a front-end for your chatbot compared to Dialogflow Messenger.

Here is how Zoho describes Zobot:

Zobot is Zoho SalesIQ’s bot development platform, using which you can build efficient chatbots to automate customer interactions. You can design chatbots to interact with your visitors conversationally from the website, mobile application, Facebook, Instagram, and WhatsApp according to your business needs. It automates the process of customer interactions and helps you maintain the presence of a helping hand, even when all your operators are engaged in other priorities. We have seven different platforms for you to build your chatbot using Zobot that help you to perform all the actions/tasks required in your chat window to save your operator’s time.

Source

3 Zobot built-in Dialogflow ES integration with GPT Fallback inside Dialogflow webhook

Zobot supports Dialogflow ES as one of the built-in integrations for its Zobot.

This means you can integrate Dialogflow ES into your SalesIQ chatbot with a single click.

Inside the ES bot, you will enable the webhook inside the Default Fallback intent as explained in bullet 1, and call the GPT API inside the Dialogflow ES webhook.

Just like the Dialogflow ES Messenger integration, this also suffers from the latency problem and can timeout or provide unpredictable results.

4 Zobot Custom ES integration with GPT Fallback outside Dialogflow webhook

However, you can use something called a Webhook integration in Zobot and call your Dialogflow ES agent first.

Instead of enabling the webhook call inside Dialogflow ES, you can now wait for the response from Dialogflow ES, and check if it is a Fallback intent. If the user utterance got mapped to a Fallback intent, you can call the GPT API from your webhook code as a second step (i.e. the GPT Fallback is now outside the Dialogflow webhook).

5 Connect Zobot webhook directly to GPT API

If you don’t need to use Dialogflow at all, you can also bypass it and call the GPT API directly from your Zobot webhook.

This would be a good choice when you are building a bot which needs GPT’s unique features which are not available in Dialogflow.

6 Zobot custom Dialogflow CX integration with GPT Fallback inside CX Webhook

You can also use the Zobot Webhook to connect your SalesIQ chatbot to Dialogflow CX instead of Dialogflow ES.

In that case, you can use CX to build out your conversation flow, but also use a webhook to call the GPT API as a fallback.

But this system will obviously have a lot of moving parts, and you need to look at many different things if something goes wrong and you need to debug your chatbot.

7 Connect Zobot Codeless Bot Builder directly to GPT API

And you can also use the Zobot Codeless Bot Builder and connect your Zobot to the GPT API.

In this case you will be using Zoho’s proprietary Deluge Script programming language to connect with the GPT API.

This can be very helpful if you only need NLU for the first step of the conversation (e.g. routing customer to the correct department), and the remaining steps can be fully scripted and don’t need any AI.