How to Build Support AI Chatbots for Your Website (for almost free) | Tutorial for Beginners

Latenode
22 Apr 202411:30

Summary

TLDRIn this video, Stan from Lot demonstrates how to create a cost-effective custom AI support bot for tech-focused web products using ChatGPT and Chatwoot, integrated with the low-code automation platform, Lat.com. The tutorial covers setting up an inbox, creating a bot with instructions and model selection, attaching files, and configuring API keys and webhooks. It concludes with a cost analysis, showing that generating 100 replies costs just $0.19, highlighting the affordability of this solution for enhancing customer support.

Takeaways

  • 😀 The video is about creating a custom AI support bot for a tech-focused web product to handle customer queries efficiently.
  • 🤖 The speaker introduces the use of Chatwo and ChatGPT for creating a website widget, which is a cost-effective solution for customer support.
  • 📝 The process starts by creating a 'dignet' using Chatwo, which is a free service for setting up an inbox for the chatbot on a website.
  • 🔑 The video guides through the setup of an agent, which is a person who will interact with the customer, and in this case, it's Stan.
  • 📝 The next step is to create a bot using the ChatGPT API, where instructions and model selection are crucial, and a retrieval function is enabled for file attachments.
  • 📚 The importance of attaching files, such as plain text or markdown files, to the bot for its operation is highlighted.
  • 🔗 The video explains how to create an API key in the ChatGPT account and how to integrate it with the workflow in the low-code automation platform called Lat.com.
  • 🛠️ The workflow in Lat.com is demonstrated, showing how it triggers the creation of a thread with the assistant and processes incoming messages.
  • 🔄 The video outlines the need to create variables in the Lat.com account, including API keys, assistant IDs, and unique identifiers for data storage.
  • 💬 The process includes setting up variables for loading phrases that the bot will use while generating responses and an assistance prompt for the AI bot.
  • 🔧 The final steps involve configuring webhooks in Chatwo to connect with the workflow in Lat.com, activating the scenario, and deploying it for use on a website.
  • 💰 The video concludes by emphasizing the cost-effectiveness of the custom AI support bot, calculating the cost for generating 100 replies to be only $0.19.

Q & A

  • What is the main issue addressed in the video?

    -The video addresses the challenge of providing customer support for tech-focused web products, particularly when there is a lack of time and human resources to assist users.

  • Why is AI chat bots becoming prevalent on websites?

    -AI chat bots are becoming prevalent because they offer a solution to the problem of managing customer support efficiently and cost-effectively, especially for tech products where users have many questions.

  • What is the custom solution presented by Stan's team for their customer support issue?

    -Stan's team, being a low-code automation platform, created a custom AI support bot using chat GPT and chatbot widgets from a tool called Chatw, integrated with their low-code automation platform called Lat.com.

  • What is Chatw and how is it used in the video?

    -Chatw is a tool for creating website widgets. In the video, it is used to create a new inbox for the chatbot on their website, where users can interact with the AI support bot.

  • What is the role of the 'agent' in the context of the video?

    -In the context of the video, an 'agent' refers to the person who would ostensibly speak with the customer, though in this case, it's the AI bot that acts as the agent, with Stan being the representative example.

  • How does the video guide the creation of an AI bot using the chat GPT API?

    -The video guides the viewer through the process of creating a bot by providing instructions, choosing a model, enabling the retrieval function for file attachments, and attaching the necessary files.

  • What files are recommended to attach for the AI bot's workflow?

    -The video recommends using plain text files (.txt) with minimal design for the AI bot's workflow, as AI does not require complex design elements.

  • What is the significance of the 'retrieval function' mentioned in the video?

    -The retrieval function is significant as it allows the AI bot to attach files, which is essential for providing context or additional information needed to generate accurate responses.

  • How does Lat.com integrate with the AI bot created using chat GPT?

    -Lat.com integrates with the AI bot by providing an automation workflow that triggers the creation of a thread with the assistant whenever a conversation starts and sends the message body to chat GPT to generate a response.

  • What are the variables that need to be set up in the Lat.com account to make the AI bot functional?

    -The variables that need to be set up include the OpenAI API key, the assistant's ID, a unique UUID for data storage, the Chatw API key, loading phrases for the bot, and the assistance prompt to be sent with customer messages.

  • How does the video demonstrate the cost-effectiveness of the custom AI support bot?

    -The video demonstrates the cost-effectiveness by providing numbers, showing that it takes around 150 input tokens and 250 output tokens for GPT to generate one reply, along with one execution credit on Lat.com, which costs significantly less than traditional support methods.

  • What are the final steps to deploy the AI bot on a website according to the video?

    -The final steps include configuring the webhook URLs in Chatw, setting up the necessary variables in the Lat.com account, and deploying the scenario to make it active.

Outlines

00:00

🤖 Creating a Custom AI Support Bot

In this paragraph, Stan introduces the problem of customer support for tech-focused web products and the common use of AI chatbots as a solution. He presents a custom solution developed by his team, which is cost-effective. Stan, from Lot, will demonstrate how to create a custom AI support bot using Chat GPC and Chatwood, a tool for creating website widgets, integrated with a low-code automation platform called Lat. The process begins with creating a widget using Chatwood, setting up an inbox, choosing the website option, and specifying the website name and domain. The bot will be created using the assistance API, requiring the setup of an agent and the attachment of files. The video will guide through the process of attaching files and setting up the API keys necessary for the bot to function.

05:00

🔧 Configuring Variables and Integrations for the AI Bot

This paragraph details the process of setting up variables and integrations necessary for the AI bot to function properly. Stan explains how to create variables for the OpenAI API key, the assistant's ID, a unique UUID for data storage, the Chatw API key, loading phrases for the bot, and the assistance prompt. Each variable is created with a specific type and value, such as strings for API keys and JSON for the loading phrases. The paragraph also covers the configuration of web hooks in Chatwood, linking them to the production URL of the web hook trigger in the Lat account. This setup ensures that the bot can receive and respond to messages effectively.

10:03

💰 The Cost-Effectiveness of the Custom AI Support Bot

In the final paragraph, Stan emphasizes the cost-effectiveness of the custom AI support bot. He provides an estimate of the cost for generating replies using the bot, which includes the number of input and output tokens required by Chat GPC and the execution credits needed on Lat. The cost breakdown shows that it takes approximately 150 input tokens and 250 output tokens for one reply, with the input token costing $0.41 and the output token costing three times more. Additionally, one execution credit on Lat costs $0.19. Stan calculates that generating 100 replies would only cost $1.90, highlighting the affordability of the solution. He concludes the video by inviting viewers to like, subscribe, and join their Discord Channel for further assistance, and provides a link to the scenario template in the video description.

Mindmap

Keywords

💡Tech Focus Web Product

A tech focus web product refers to a web-based application or service that is centered around technology and its functionalities. In the context of the video, it's a product that requires users to understand its technical workings. The script mentions that customer support for such a product can be challenging due to the complexity involved, which is why AI chatbots are introduced as a solution.

💡Customer Support

Customer support refers to the assistance provided to customers by a company to help them with their inquiries, issues, or feedback regarding a product or service. In the video, it is identified as a 'worst nightmare' for tech web product teams due to the high demand and the complexity of addressing technical questions, which is why an AI solution is sought.

💡AI Chat Bots

AI chat bots are software applications powered by artificial intelligence that can interact with users in a conversational manner. They are used to provide instant responses and assistance on websites. The script discusses the implementation of AI chat bots to alleviate the burden of customer support on human resources.

💡Low Code Automation Platform

A low code automation platform is a tool that allows users to create applications or automate processes with minimal coding. The video script mentions that the team uses such a platform, called 'lat.com', to create a custom AI support bot, emphasizing the ease and efficiency of the process.

💡Chatwood

Chatwood is a tool mentioned in the script for creating website widgets. It is used in conjunction with a low code automation platform to set up the user interface for the AI support bot, allowing for a chat interface on the website without extensive coding.

💡API Keys

API keys are unique identifiers used to authenticate requests to an API (Application Programming Interface). In the script, API keys are created and used to connect the AI chat bot to the services of 'openai' and 'chatw', enabling the bot to function and interact with users.

💡Retrieval Function

The retrieval function, as mentioned in the script, is a feature that allows the AI to attach files, which is crucial for the AI to access and utilize information from attached documents. This function is turned on when setting up the AI bot in the 'openai' account.

💡Webhook Trigger

A webhook trigger is an event that activates a specific process or workflow when it occurs. In the video, webhook triggers are used to initiate the creation of a conversation thread with the AI assistant and to send messages to the AI when they are received from the user.

💡Variables

In the context of the script, variables are elements within the low code automation platform that store data used in the workflow. They are essential for customizing the AI bot, such as storing API keys, assistant IDs, and loading phrases for the bot to use.

💡Cost-Effectiveness

Cost-effectiveness refers to the ability to achieve the desired outcome at the lowest possible cost. The script highlights the affordability of the custom AI support bot, calculating the cost of generating replies using tokens and execution credits, and emphasizing the economic advantage of using AI over human resources.

💡Automation Workflow

An automation workflow is a sequence of steps or actions that are automated to perform a task or process. The script describes the creation of an automation workflow in the 'lat.com' platform that integrates the AI bot with the website, allowing it to respond to user inquiries automatically.

Highlights

Introduction to the problem of customer support in tech-focused web products and the solution of AI chatbots.

The team's challenge of limited time and human resources for customer support and their decision to create a custom AI support bot.

The cost-effectiveness of the custom AI support bot solution.

Introduction of the speaker, Stan, and the purpose of the video: creating a custom AI support bot using chat GPT and chatw.

The process of creating a chatbot using chatw, starting with creating a new inbox for the website.

The importance of choosing the right widget color and setting up the welcome heading and tagline.

The selection of an agent for the chatbot and the integration of the script into the website.

The creation of the actual bot using the chat GPT assistance API and the importance of turning on the retrieval function.

The process of attaching files to the bot and the types of files recommended for use with AI.

The necessity of creating API keys for both chat GPT and chatw and their integration into the workflow.

The use of the no-code automation platform, lat.com, for creating the automation workflow for the chatbot.

The cloning of a template from the AI examples folder in lat.com to create the automation workflow.

The explanation of the two parts of the workflow: the webhook trigger for starting a conversation and the message reception part.

The creation of variables in the workflow for API keys, assistant ID, and other necessary data.

The use of loading phrases for the bot to communicate with customers while processing responses.

The finalization of the scenario with the correct webhook URLs and the deployment of the scenario for functionality.

The cost analysis of generating 100 replies with the custom AI support bot, emphasizing its affordability.

The conclusion of the video with an invitation for feedback and assistance through the provided Discord Channel.

Transcripts

play00:00

if you run a tech Focus web product

play00:02

customer support is your worst nightmare

play00:04

people try to figure out how your

play00:06

product works and you have no time and

play00:09

no human resources to help them that's

play00:11

why you see AI chat bots on almost every

play00:13

website our team fac the same issue but

play00:16

since we're a loward automation platform

play00:19

we tried to come up with a custom

play00:21

solution for it and we did yes come

play00:25

on and the best thing is that came out

play00:28

to be extremely cheap cheap hello

play00:30

everyone I'm Stan from lot and in this

play00:32

video I'll show you how to create a

play00:34

custom AI support bot using chat GPC and

play00:37

chatwood a tool for creating website

play00:39

widgets bonded of course by low code

play00:42

automation platform called late n let's

play00:46

start with creating a diget and we'll

play00:48

use chatwood to do it first of all

play00:50

because you can use it for free so I

play00:54

logged into my account and after that I

play00:57

have to go to inboxes here here to

play01:00

create a new

play01:02

inbox and here I choose the website

play01:04

option because I'm trying to create in

play01:07

the chatbot for my late night website so

play01:11

in here we have to specify the website

play01:14

name and domain let's do

play01:19

it okay now we can choose the widget

play01:22

color anything would be okay uh welcome

play01:27

heading the tagline

play01:32

and that said we can now create an

play01:37

inbox now we have to pick an agent an

play01:39

agent is a person who would speak with

play01:43

the customer so in my case it's

play01:45

obviously

play01:47

Stan and that's it now I have the script

play01:51

that I can just put into my website and

play01:54

get vidget and the next step is going to

play01:56

be creation of an actual bot using chpt

play02:00

assistance API so here we are in open

play02:04

eyes account and we have to go to

play02:06

assistance tab here and then click

play02:08

create to actually create a b then you

play02:10

give it a name provide it with

play02:12

instructions choose the model and what

play02:15

is the most important you have to turn

play02:17

the retrieval function on so you will be

play02:20

able to attach files to it and after

play02:23

that click here to actually attach the

play02:25

files I can show you the actual bot

play02:28

we're using onl not.com here it is and

play02:31

here are the instructions that we're

play02:33

using and talking about the files to

play02:36

attach you can use txt files with plain

play02:39

text minimal design no design uh cuz AI

play02:43

just don't need it in this case we use

play02:45

MD

play02:46

files and uh to make your workflow

play02:49

actually work what you also need to do

play02:53

in your account is to go to API keys and

play02:56

actually create one after this we can

play02:58

switch to lat.com

play03:00

so here we are in late night account

play03:03

I've created a brand new one so and the

play03:06

first thing that we're going to do is to

play03:08

start with template click here and now

play03:11

we are in the template gallery of late n

play03:14

we'll need to go to AI examples folder

play03:18

and the second example here is what we

play03:21

need GPT customer supported B yes click

play03:25

on

play03:26

it and here you see the actual

play03:29

automation workflow that runs this

play03:33

vidget but to make work for you first

play03:35

thing that you have to do is to click

play03:37

clone to add this template to your

play03:40

scenario

play03:41

list here it is we can see now that it

play03:45

is in our scenarios what is going on

play03:50

here we have two parts of this workflow

play03:53

each one starts with the web hook

play03:55

trigger first web hook trigger activates

play03:58

the creation of thread with the

play04:02

assistant and it's triggered every time

play04:04

the conversation starts in our Viet and

play04:08

the second part of this workflow is

play04:11

activated when the message is received

play04:14

and uh it sends the body of this message

play04:18

to chat GPC using this workflow and

play04:21

generates the answer we actually can see

play04:24

how it works cuz here it is the actual

play04:28

uh system that that is created using

play04:31

this workflow let's click on it it saved

play04:34

my previous question so I asked how to

play04:36

create a scenaria and it ask me to wait

play04:39

a bit and uh after that so this messages

play04:44

are sent to to extend the waiting time

play04:46

for the reply of the assistant but it

play04:49

actually doesn't matter cuz all you have

play04:51

to do to make this scenario this example

play04:54

uh work for you is to go here to

play04:56

variables Tab and create a few VAR ibles

play05:00

that are going to be used in this

play05:01

workflow and that's it so let's create a

play05:04

first one click here new variable and

play05:07

then select the type of a variable the

play05:09

first variable that we're going to

play05:10

create is the variable for openi API key

play05:14

so since is just string of numbers and

play05:18

letters we going to use a string type

play05:21

let's name

play05:28

it okay and here in value field we just

play05:32

need to insert our API key from the open

play05:37

account and after that click

play05:40

save here it is our first

play05:43

variable the next variable is going to

play05:46

be the assistant's

play05:47

ID so we choose the string type once

play05:50

again give it a

play05:57

name and in value tab we insert the

play06:02

actual assistance ID from our account

play06:05

here it is and just paste and click save

play06:10

another variable grade for the next

play06:13

variable you can visit this website is

play06:16

called uuid generated. net and what it

play06:20

does it creates the this yuu ID so that

play06:26

is just a unique stream for storing data

play06:29

in key value pass we just

play06:32

copy this ID and then go back to

play06:36

variables uh choose string type once

play06:38

again give it a

play06:44

name and here just insert this code here

play06:48

is another variable variable number four

play06:52

is going to be the chatw API key so new

play06:56

variable and streen again specify the

play06:59

name

play07:03

and to get the chatboard API key go back

play07:06

to chatboard account click on your

play07:09

profile then go to profile settings and

play07:12

scroll down the page and here you see

play07:15

your access token copy and then paste

play07:21

inide of this field

play07:25

okay we'll use the next variable to

play07:28

provide the bot with the loaded phrases

play07:30

that he will send to the customer till

play07:33

he is thinking what to answer so create

play07:36

new variable and then choose Json

play07:40

because we'll add the Json object here

play07:43

give it a

play07:46

name and in value tab you can use this

play07:50

loading phrases from the description of

play07:53

this video or you can come up with your

play07:56

own so click here and just paste it

play08:01

that's it

play08:02

save and the last variable is the

play08:06

assistance prompt so new variable streen

play08:16

again this prom will be sended together

play08:19

with the customer message to the AI bot

play08:22

so you can come up with your own or you

play08:25

can just take the one from the

play08:27

description

play08:30

just paste it here and that's it we

play08:35

finished with variables and now we have

play08:38

a fully functional scenario here

play08:40

actually I've missed one thing let's

play08:42

choose the WAP hook node here and here

play08:45

we have development and production URL

play08:47

we'll need the production one and also

play08:50

you can edit it a

play08:53

bit okay that's okay then we copy it and

play08:58

save the changes

play09:03

yes after that we have to go back to

play09:07

chatwood in chatwood go to settings and

play09:10

then Integrations and here we have web

play09:13

hooks now we have to click configure and

play09:16

add new web hook and here we add the

play09:19

production URL of this web hook trigger

play09:23

and since this web Hook is activated uh

play09:26

when the conversation is created we have

play09:29

to choose this event and then create web

play09:32

hook and all the same we have to do with

play09:35

the second one where with which is

play09:38

activated when the message is received

play09:40

so go to production URL edit

play09:46

it okay and now copy and save the

play09:52

changes and once again add new web hook

play09:56

paste the link and now choose message

play09:59

create created event that's it after you

play10:02

do that your scenario is fully

play10:05

functional and all you have to do is to

play10:07

click the deploy

play10:10

button here it is the scenario is active

play10:13

now and uh if you put the widget on your

play10:17

website it should actually work just

play10:19

like the widget on lot.com and I said

play10:23

this custom AI support Bo is extremely

play10:26

cheap right let's bring some numbers it

play10:28

takes something around 150 input tokens

play10:33

and 250 output tokens for Chad gp4 turbo

play10:37

to generate one reply and also it takes

play10:41

only one execution credit on lot.com to

play10:44

run this scenario GPT for turo input

play10:47

token cost

play10:50

0.41 and output token cost three times

play10:53

more and one execution credit on lot.com

play10:57

costs zero bu two $19 so to generate 100

play11:03

replies it takes only

play11:06

$19 cents isn't that cheap that's it

play11:10

guys thanks for watching if you found

play11:12

this video helpful please give it a like

play11:14

subscribe and hit the Bell if you face

play11:17

any difficulties during your automation

play11:18

Journey feel free to ask for help in our

play11:21

Discord Channel Link in the description

play11:24

together with the template of this

play11:26

scenario see you soon and happy

play11:28

automating

Rate This

5.0 / 5 (0 votes)

Related Tags
AI SupportChatBotsCustomer ServiceAutomationWeb WidgetsTech SolutionsLow-CodeChatGPT APIChatw IntegrationWorkflow Design