Create a Highly Accurate Knowledge Base in Voiceflow using Tags API

Sandeep Kaistha | Flipbytes
27 May 202442:32

Summary

TLDRThis video tutorial guides viewers on creating an accurate knowledge base for AI agents or chatbots using Voiceflow's Tags API. It explains the concept of tagging as a method to efficiently retrieve information, akin to organizing books in a library. The host demonstrates setting up tags in Voiceflow, structuring data for clarity, and using the Tags API to query the knowledge base effectively. The aim is to enhance the AI's ability to provide precise answers by directing it to the right documents based on user queries.

Takeaways

  • πŸ“š The video is a tutorial on creating an accurate knowledge base using Voice Lo tags API, which is essential for AI agents and chatbots.
  • 🏷️ Tags are compared to stickers on books in a library, helping AI quickly find relevant information without searching through every document.
  • πŸ› οΈ The presenter demonstrates setting up tags in Voice Flow using the Voice Flow tags API, emphasizing the value of a well-structured knowledge base.
  • πŸ“ The process involves creating an assistant in Voice Flow, attaching knowledge-based documents, and then tagging these documents for efficient AI referencing.
  • 🌐 The use of a wellness website called Vikasa as an example to illustrate the organization and structuring of a knowledge base.
  • πŸ” The importance of clean data input into Voice Flow is stressed, with text files being preferred over PDFs, docs, and URLs to avoid information bloat.
  • πŸ“‘ The video guides through the steps of uploading documents to Voice Flow, cleaning the data, and attaching them to tags for organized knowledge base management.
  • πŸ”‘ An API key is used to connect the Voice Flow assistant with the knowledge base, pulling in the necessary documents for tagging.
  • πŸ“ The creation of tags using the Voice Flow tags API is demonstrated, showing how to assign tags to specific documents for targeted AI queries.
  • πŸ”„ The video includes testing the API to ensure that questions posed to the AI are answered accurately based on the attached tags and documents.
  • πŸ€– Finally, the script outlines integrating this functionality into a Voice Flow chatbot, allowing it to query the knowledge base effectively using the API.

Q & A

  • What is the main purpose of creating a knowledge base for AI agents or chatbots?

    -The main purpose of creating a knowledge base for AI agents or chatbots is to provide them with a structured and organized source of information that they can reference to give accurate and relevant responses to user queries.

  • What is the analogy used in the script to explain the concept of tags in a knowledge base?

    -The analogy used in the script is that of a librarian in a big library. Tags are like special stickers on certain books that help the librarian (or AI) know exactly which books to look for first when someone asks a question, making the search faster and more accurate.

  • Why is it important to have a well-structured knowledge base for an AI agent?

    -A well-structured knowledge base is crucial because it ensures that the AI agent can provide the right or the best possible answers to queries. Without it, the AI might not be able to find the correct information or might provide inaccurate answers.

  • What are the recommended data sources for uploading documents to a knowledge base in Voice Flow?

    -The recommended data sources for uploading documents to a knowledge base in Voice Flow are text files, followed by PDFs, DOCs, and then URLs. Text files are preferred because they are the cleanest and easiest for the AI to read and reference.

  • How does the script suggest organizing the data for an effective knowledge base?

    -The script suggests organizing the data in a clean and precise format, with a preference for plain text files. This helps in reducing information bloat and makes it easier for the AI to read the knowledge base correctly and provide accurate answers.

  • What is the role of tags in structuring a knowledge base for an AI agent?

    -Tags play a crucial role in structuring a knowledge base by directing the AI agent to reference specific documents for particular questions. This ensures that the AI agent provides accurate and relevant information without getting confused or providing wrong information.

  • How does the script describe the process of attaching tags to documents in Voice Flow?

    -The script describes the process of attaching tags to documents in Voice Flow by first creating an assistant and attaching knowledge-based documents. Then, it explains how to use the Voice Flow tags API to create tags and attach them to specific documents, which helps in organizing the knowledge base effectively.

  • What is the significance of using the Voice Flow tags API in the process of setting up a knowledge base?

    -The Voice Flow tags API is significant in the process of setting up a knowledge base as it allows for the creation and management of tags. These tags help in categorizing and linking specific documents to particular topics or queries, ensuring that the AI agent can retrieve the correct information efficiently.

  • How does the script guide the viewer in testing the knowledge base setup using the Voice Flow API?

    -The script guides the viewer in testing the knowledge base setup by demonstrating how to use the query API in Voice Flow. It shows how to input a question and the relevant tag, and then how to interpret the output to ensure that the AI agent is retrieving the correct information from the knowledge base.

  • What is the final step described in the script for integrating the knowledge base with a Voice Flow chatbot?

    -The final step described in the script is to configure the API in Voice Flow to connect the chatbot with the knowledge base. This involves setting up the API step with the correct URL, headers, and parameters, and then testing the system to ensure that it can provide accurate responses based on user queries and the associated tags.

Outlines

00:00

πŸ“š Introduction to Creating a Knowledge Base with Voiceflow

The video introduces the process of creating a highly accurate knowledge base using Voiceflow's tags API. It emphasizes the importance of tags in structuring a knowledge base, comparing it to a library where tags act as stickers on books, directing the AI to the right information quickly. The necessity of a well-structured knowledge base for effective AI agents or chatbots is highlighted, and the video promises a step-by-step guide on setting up tags in Voiceflow.

05:01

🌐 Setting Up the Knowledge Base with Voiceflow

The speaker details the initial steps for setting up a knowledge base in Voiceflow, starting with creating an assistant and attaching knowledge-based documents. The use of a wellness website called 'vikasa' is demonstrated as an example of an organized knowledge base. The process involves copying URLs from the website, importing them into Voiceflow, and emphasizing the importance of clean data for effective AI operation.

10:02

πŸ” The Importance of Clean Data for AI Accuracy

This section discusses the challenges of using URLs as data sources due to potential information bloat, which can confuse AI agents. The speaker recommends using text files for sensitive data to maintain the quality of answers. The process of reformatting web data into clean documents is shown, and the newly formatted documents are re-uploaded to Voiceflow for a more accurate knowledge base.

15:03

🏷️ Utilizing Tags to Organize the Knowledge Base

The explanation of tags continues, with the creation of tags using Voiceflow's tags API. The process involves listing documents, obtaining an API key, and using it to connect the API with the knowledge base. The speaker demonstrates how to create tags for different documents and emphasizes the importance of associating tags with the correct documents to guide the AI agent in providing accurate information.

20:03

πŸ“ Attaching Tags to Documents for Specific Queries

The video script outlines the process of attaching tags to specific documents within the knowledge base. This step is crucial for directing the AI agent to the appropriate document when a query is made. The speaker shows how to use the 'attach KB tags to the document' feature in the tags API, ensuring that each document is associated with the correct tag for precise information retrieval.

25:05

πŸ€– Testing the Knowledge Base with Query API

The speaker describes how to test the knowledge base using the query API to ensure that the tags are correctly associated with the documents and that the AI can retrieve accurate information. The process involves sending a query with specified tags to the API and receiving the correct response based on the tagged documents. The testing interface is used to ask questions and receive answers directly from the knowledge base.

30:07

πŸ”„ Implementing the Knowledge Base in Voiceflow Chatbot

The final steps involve implementing the knowledge base functionality into a Voiceflow chatbot. The speaker discusses creating buttons for different programs within the chatbot and using variables to store user selections. The process of capturing user input and sending it to the knowledge base for a response is detailed, including setting up API calls within Voiceflow to interact with the knowledge base.

35:08

πŸ”‘ Configuring API for Voiceflow Chatbot Integration

This section covers the technical configuration of the API within Voiceflow for the chatbot. The speaker explains how to set up the API step, including the method type, URL, headers with API key, and parameters for the request body. The importance of correct formatting, especially with JSON and double quotes, is highlighted to ensure the API functions correctly with Voiceflow.

40:10

πŸ“ˆ Demonstrating the Effectiveness of Tagging in Knowledge Retrieval

The speaker concludes by demonstrating the effectiveness of tagging in retrieving accurate information from the knowledge base. The video shows how the chatbot can provide specific pricing information for different yoga programs based on the tags associated with the user's query. The demonstration reinforces the importance of a well-organized knowledge base with proper tagging for AI accuracy.

🎬 Conclusion and Additional Resources

The video concludes with a summary of the process and an invitation for viewers to engage with the content. The speaker offers help through their AI agency for those needing assistance with AI projects and encourages viewers to explore additional resources, such as other instructional videos on creating chatbots or lead generation systems.

Mindmap

Keywords

πŸ’‘Knowledge Base

A knowledge base is a structured collection of information that is used to support decision-making and provide answers to queries. In the context of the video, the knowledge base is likened to a library of books, where each book contains specific information that an AI agent or chatbot can reference to answer questions accurately. The script emphasizes the importance of a well-structured knowledge base for the AI to provide the right answers.

πŸ’‘Voice Lo tags API

The Voice Lo tags API is a tool mentioned in the script that is used to create tags within a knowledge base. Tags are used to categorize and organize information, making it easier for AI agents to retrieve relevant data. The script explains that using this API helps in setting up a highly accurate knowledge base by tagging specific documents, which is crucial for the AI's efficiency in providing information.

πŸ’‘AI Agents

AI Agents, or artificial intelligence agents, are autonomous systems that can perform tasks, make decisions, or provide information based on programmed instructions and data inputs. In the video, AI agents are being trained to use the knowledge base effectively by referencing tags to find answers to user queries, such as information about yoga programs.

πŸ’‘Chatbots

Chatbots are computer programs designed to simulate conversation with human users. They are often used for customer service or information provision. The script discusses creating AI chatbots that utilize a knowledge base to provide accurate and quick responses to user inquiries, with tags playing a key role in directing the chatbot to the correct information.

πŸ’‘Tags

In the context of the video, tags are labels or markers that are applied to specific documents within a knowledge base to categorize the information they contain. The script uses the analogy of stickers on books in a library to explain how tags help an AI quickly locate relevant information when a question is asked, streamlining the process and improving accuracy.

πŸ’‘Voice Flow

Voice Flow is a platform mentioned in the script that is used to create AI agents and chatbots. It allows users to design workflows and upload knowledge base documents that the AI can reference. The script demonstrates how to use Voice Flow to create an assistant, attach documents, and utilize the Voice Lo tags API for effective knowledge base management.

πŸ’‘Data Structure

Data structure refers to the way data is organized, stored, and manipulated in a database or system. The script highlights the importance of structuring data correctly within the knowledge base, as this impacts the AI's ability to provide accurate answers. The video provides guidance on organizing data in a clean and precise format for optimal AI performance.

πŸ’‘API Key

An API key is a unique code used to authenticate requests to an API (Application Programming Interface). In the script, the API key is used to connect the Voice Lo tags API with the knowledge base in Voice Flow, allowing the AI agent to access and utilize the tagged documents for answering queries.

πŸ’‘Workflow

In the context of AI and chatbot creation, a workflow refers to the sequence of actions or steps that an AI agent takes to complete a task or respond to a user query. The script discusses designing workflows in Voice Flow, which includes setting up the AI agent to interact with the knowledge base and use tags to find relevant information.

πŸ’‘Variable

In programming and AI design, a variable is a storage location paired with a name, which holds information that can be changed or manipulated. The script explains using variables in Voice Flow to store user selections and inputs, such as the program selected by the user or the question asked, which are then used to query the knowledge base.

πŸ’‘Capture Step

A capture step is a part of a workflow where user input is recorded or 'captured' for further processing. In the script, the capture step is used to record the user's question after they have selected a program from the provided options, which is then used to query the knowledge base for an accurate response.

πŸ’‘Query API

A query API is an interface that allows users to send requests to a system and receive responses based on those requests. In the video script, the query API is used to send the user's question and the selected program to the knowledge base, which then returns the relevant information from the tagged documents.

Highlights

Introduction to creating a highly accurate knowledge base using voice Lo tags API, essential for AI agents or chatbots.

Explanation of tags as a method to enhance the accuracy of information retrieval from a knowledge base.

Analogy of tags to stickers on books in a library to prioritize search by an AI, making it faster and more accurate.

Importance of a well-structured knowledge base for providing the right answers in AI systems.

Demonstration of setting up tags in Voice Flow using the Voice Flow tags API.

Use of a wellness website 'vikasa' as an example to illustrate the knowledge base structuring process.

Instructions on creating an assistant in Voice Flow to attach knowledge-based documents for tagging.

Importance of data cleanliness and structure for effective knowledge base operation.

Comparison of different data sources for knowledge base input, emphasizing plain text as the most effective.

Process of uploading and organizing data into Voice Flow for a cleaner knowledge base.

Explanation of attaching documents to tags to ensure the AI references the correct information.

Step-by-step guide on creating tags using the tags API in Voice Flow.

Testing the created tags and their functionality in querying the knowledge base.

Integration of the knowledge base with Voice Flow's chatbot for practical application.

Use of variables in Voice Flow to store user selections and questions for the knowledge base query.

Configuration of the API in Voice Flow to connect with the knowledge base and retrieve answers.

Final testing of the Voice Flow chatbot with the knowledge base to ensure accurate response retrieval.

Conclusion summarizing the process of creating a highly accurate knowledge base in Voice Flow using tags.

Transcripts

play00:00

hello and welcome in this video I'll

play00:02

show you how to create a highly accurate

play00:04

knowledge base using voice Lo tags API

play00:07

there's a must watch video if you are

play00:09

creating AI agents or AI chat Bots using

play00:11

voice law you must probably be wondering

play00:14

what are tags and how they help you get

play00:16

accurate information from the knowledge

play00:18

base let me explain with an example

play00:21

let's imagine your knowledge base is

play00:23

like a big Library filled books okay so

play00:26

when someone asks a question it's like

play00:28

searching through all the books to find

play00:30

the answer using tags is like putting

play00:32

special stickers on those certain books

play00:35

these stickers help the librarian that

play00:37

is your AI know exactly which books to

play00:40

look for at first when someone asks a

play00:42

question this way the librarian or the

play00:45

AI doesn't have to search through every

play00:47

single book but can go straight to the

play00:49

ones with the special stickers making

play00:51

the search much more faster and more

play00:53

accurate so if you asked a question

play00:55

about yoga the librarian would only look

play00:58

at books with the yoga sticker on them

play01:00

this makes finding the right answer much

play01:02

quicker and easier a knowledge base is

play01:05

the heart and soul of any AI agent or

play01:07

chatbot and without a well structured

play01:09

knowledge base you won't get the right

play01:11

or the best possible answer for your

play01:12

query okay now let's see how to set up

play01:16

tags in voice flow so for this video we

play01:18

will use voice flow and the voice flow

play01:20

tags API and I'll leave the links to

play01:22

both in the description so let's get

play01:24

started all right this video is going to

play01:26

be a bit long because we have a lot lot

play01:28

to cover but I promise you it will be

play01:30

very valuable and worth your time so

play01:32

close all your tabs grab a cup of coffee

play01:34

or your favorite drink and let's get

play01:36

started don't forget to add this video

play01:38

to your favorites so you can easily come

play01:40

back to it later for reference as always

play01:43

all the links prompts and responses will

play01:46

be available for free on the source Hub

play01:48

and I'll leave a link to that in the

play01:50

description below okay perfect so the

play01:53

first thing we need to do is we need to

play01:54

create an assistant in voice flow okay

play01:56

and the reason we need to create an

play01:57

assistant is so that we can attach the

play01:59

voice uh the knowledge based documents

play02:01

and those knowledge based document is

play02:03

what we will be tagging it'll all become

play02:05

very clear once I start doing it okay so

play02:08

the thing is that so for the knowledge

play02:10

base what we'll do is we'll actually uh

play02:12

you you can use any site uh for the

play02:14

purpose of this video I'm going to use a

play02:15

website called vikasa they're very

play02:16

beautifully organized it's a wellness

play02:18

website uh okay so let's go

play02:21

there all

play02:23

right so as you can see out here they

play02:26

have uh they have multiple programs but

play02:28

for this video what we'll do is we

play02:30

uh use like if you go to the foundation

play02:33

yoga training it has the dates it has uh

play02:37

you

play02:38

know all the information about uh this

play02:41

particular program as well as the

play02:43

pricing so if you go

play02:45

down and you can see the pricing as well

play02:48

okay so it is very very clearly

play02:50

organized and same thing if you go back

play02:53

and you say Okay 300 are Advanced and

play02:56

then it is organized again the same way

play02:57

you have the dates as well as the

play03:00

details and the pricing so this is a

play03:02

perfect example if it is actually the

play03:04

knowledge base is like this okay so for

play03:07

the purpose of this video what I'm going

play03:08

to do is I am going to take the four 1 2

play03:12

3 and four these four pages okay and uh

play03:15

so let's copy the URLs and then I'll

play03:18

show you how to actually add them to

play03:21

voice flow so this is the first so I

play03:24

have all the four URLs now let's go back

play03:26

to voice flow we'll create an assistant

play03:28

and we will attach this in the knowledge

play03:30

base all right so

play03:34

let's go to the assistant and send new

play03:37

assistant because uh uh knowledge based

play03:42

test all right modality is going to be

play03:44

CH since we are using that and then go

play03:46

to English and let's say

play03:50

continue okay perfect so now we in the

play03:53

workspace

play03:55

okay once you go back you can actually

play03:58

see within this assistant this is arasa

play04:00

KB test which we just created you have

play04:03

something called workflow and knowledge

play04:04

base so the workflow is where we design

play04:06

the AI agent and the knowledge base is

play04:08

where we upload the documents which we

play04:10

want the AI agent to reference to okay

play04:13

so to add documents you have multiple

play04:15

sources here so I'm going to use the URL

play04:17

since we just copied the URL

play04:20

and copy this paste it let's say it

play04:26

doesn't matter let's say monthly to

play04:27

refresh rate

play04:30

okay and let's

play04:33

import so it's importing right now all

play04:36

right so I want to mention that your

play04:38

data source needs to be as clean as

play04:40

possible and structuring your data

play04:42

correctly is very very important for an

play04:44

effective knowledge base so when you

play04:46

input data into voice flow the best type

play04:48

is text files followed by PDFs and docs

play04:51

and then only URLs this is important

play04:54

because when a bot scrapes a web page it

play04:56

often picks up unnecessary spaces

play04:58

characters and irrelevant links because

play05:00

of this this information bloat it can

play05:03

get harder for an AI to read the

play05:04

knowledge base correctly and provide

play05:06

accurate answers make sure you have a

play05:08

well structured text file for sensitive

play05:09

data such as uh pricing or dates Etc

play05:13

this will greatly improve the quality of

play05:15

your ansers so now you have green marks

play05:18

next to all the URLs that basically

play05:19

means that it is a voice flow has

play05:21

actually uploaded those documents okay

play05:23

so now if you click on the white portion

play05:25

next to the URL you will see how voice

play05:28

flow is storing this data

play05:30

okay and it's in chunks and as you can

play05:31

see it is a lot of garbage basically

play05:34

because you have all of these

play05:36

TTS uh you know it's not not good at all

play05:40

actually so uh um yeah the the most

play05:43

important part is that especially when

play05:45

you creating an AI agent the AI agent is

play05:47

as good as the data it gets okay so if

play05:49

you give garbage it is going to spit out

play05:51

garbage so we need to make sure that the

play05:53

data is actually valid and it's in a

play05:55

very clean format so as I explained

play05:57

earlier in the video when you're are

play05:59

uploading data to knowledge base it

play06:01

needs to be very clean and very precise

play06:04

okay and the way the voice FL is the

play06:07

best data is the plain text if you can

play06:09

actually just get text and put it out

play06:11

there uh it is very easy for the AI

play06:14

agent to actually reference the data

play06:16

okay so then of course is the PDF files

play06:18

or the doc files and then comes URLs

play06:20

because the problem with URL is there is

play06:22

a lot of bloating okay so there's

play06:23

information bloating because as you can

play06:25

see uh you know it is chunked out so

play06:29

first of all there's a lot of probably

play06:30

this is because of the spaces or and

play06:33

this has got a lot of URLs as well

play06:35

because a page also has URLs and other

play06:37

links as well so probably it is not the

play06:40

best way to do it okay okay so what I'm

play06:42

going to do is I will actually create um

play06:45

you know for these four documents for

play06:47

these four URLs I'll create a clean

play06:49

document so if you go to Foundation yoga

play06:52

what I'm going to do is actually I'm

play06:53

going to uh you know right click and uh

play06:57

copy it and put it in a text so that we

play06:59

can actually use this so the same thing

play07:01

out here as well just right click and

play07:03

copy and put it into a text file so it

play07:06

can be used all right all right so I

play07:08

have created these four documents now uh

play07:11

you know if you see this is now the

play07:12

documents look much cleaner these are

play07:14

doc files so I copied all of the

play07:17

information from the website and then

play07:19

sort of organized it in a way that uh

play07:21

the AI can easily read it and reference

play07:24

it okay so I did it for these four and

play07:27

it's advisable that if you're doing it

play07:28

for your clients or or for yourself uh

play07:30

as well for your business it is always

play07:32

advisable that you actually U you know

play07:35

take the data and put in a very clean

play07:36

format so that yeahi can actually read

play07:38

it and then give right answers rather

play07:40

than total garbage okay all right so

play07:43

what I'm going to do is now I'm going to

play07:44

actually uh delete these

play07:50

for okay so now what I'll do is I'm

play07:53

going to reupload uh it in plain text so

play07:55

that is as I said that was preferable so

play07:58

let's go back to the documents and I'm

play08:01

going to open this that's opening in the

play08:03

text file just copy this and then put it

play08:06

out

play08:11

there so this is the document just say

play08:14

import all right great so now I've

play08:17

uploaded all the four documents as you

play08:19

can see uh you know and uh if you click

play08:21

on these

play08:24

documents look at the way it is stored

play08:26

now you know as compared to earlier

play08:28

because it is so clean and it's very

play08:30

well formatted so it's much easier for

play08:32

the AI agent to actually reference the

play08:34

document and get the right information

play08:36

okay so the next thing is that we need

play08:39

to attach these documents to tags now

play08:41

what you need to understand is what what

play08:43

are tags and why are they important okay

play08:45

so a tag is something like it tells the

play08:48

AI that okay you need to reference only

play08:50

this particular document for this

play08:52

particular question so this is what

play08:53

happens so now when someone asks a

play08:55

question about uh to the AI agent about

play08:58

the foundation yoga it will reference

play09:00

only this particular document this is

play09:02

the foundation yoga teacher which has

play09:03

got all the information so it doesn't

play09:05

get confused and it does not get uh

play09:07

wrong information you know so it is not

play09:09

giving if somebody asked pricing for the

play09:11

yoga uh Foundation yoga teacher training

play09:13

program it is not giving you pricing for

play09:15

the advanced okay because they are

play09:17

structured in a certain way basically so

play09:18

if you see this is the dates for the

play09:20

foundation and if you go out

play09:23

here this is a nicely organized site

play09:25

that's the reason I'm taking this as

play09:27

example so if you go to Advanced the

play09:29

same thing out here it has got the dates

play09:31

so if somebody is asking for dates for

play09:33

the foundation yoga program you don't

play09:34

want the AI to give dates for the

play09:36

advanced okay so that's where tagging

play09:38

helps so tagging tells the a agent that

play09:41

only look at this particular document to

play09:43

answer this question which is for the

play09:45

foundation yoga program okay so let's go

play09:48

ahead and create some tags all right so

play09:50

the step one in creating tag is so we'll

play09:53

go to to create tags basically we will

play09:56

be using uh the tags API which is from

play09:58

voice FL

play09:59

okay so I'm going to leave this

play10:01

particular Link in the description uh so

play10:04

you can easily uh go to this so the

play10:07

first thing we need to do is we need to

play10:08

create a document we'll need to go and

play10:10

check out a document list all right so

play10:12

don't worry about this I'm going to

play10:14

actually uh guide you through this whole

play10:15

process step by step there is no coding

play10:17

involved it is a no code solution but of

play10:19

course I mean you know so don't get uh

play10:21

bothered by the code which you see out

play10:23

here uh this is just for reference all

play10:25

right okay so the first thing we need to

play10:28

do is we will actually go here and uh

play10:31

you'll come to the document list now

play10:33

what is this document list is that it

play10:35

gets uh you know it goes back to the

play10:37

knowledge base to the AI agent and says

play10:39

hey these are the four documents which

play10:41

we have all right and these are the four

play10:43

documents which need to be Tagged so

play10:46

once I go back to uh vicasa uh sorry my

play10:51

test and uh then we will go to

play10:54

Integrations and you have an API key

play10:56

here which we need right now this is the

play10:58

primary key this is the API keys and you

play11:00

will just copy this key okay so it's

play11:03

copied let's go back to our system all

play11:06

right so I'm going to use the key out

play11:08

here and what is this going to do is it

play11:10

is going to connect this particular API

play11:12

with this knowledge base right here uh

play11:15

which is our knowledge base these four

play11:17

documents okay and it will pull these

play11:20

four documents so it knows that this is

play11:22

the a agent and I'm going to pull this

play11:24

information all right so when I say the

play11:27

document I've connected the AP key and

play11:29

I'm going to say try it and there you go

play11:33

so as you can see it is right here all

play11:36

it's pulled up all the information so

play11:38

total is four documents data and then so

play11:41

this is not the code basically okay so

play11:43

this is the as you can see this is total

play11:46

of four documents and this is the

play11:48

document ID you can see the name 200 uh

play11:51

let me just actually copy this and put

play11:53

it into a

play11:59

so it's easier to see all right again

play12:02

don't go get bogged down by the code

play12:05

this is just information nothing else

play12:06

I'm just going to expand

play12:08

that so you guys can easily see it show

play12:13

FS all

play12:16

right okay so now if you can see this is

play12:19

total of four and there's a data and

play12:22

then the data says this is 200h hour

play12:24

foundation yoga training program so this

play12:25

is the document this is the document ID

play12:27

which we'll be using and

play12:29

uh if you see there are no tags out here

play12:31

okay so this is look at this tags column

play12:33

this is empty which basically means that

play12:35

there is no tag uh which is attached to

play12:38

this document and that will that's

play12:39

exactly what we'll be creating so that

play12:41

we can reference the tags when we're

play12:43

actually talking with the AI agent all

play12:45

right so okay so the same thing out here

play12:48

this is tags is empty tag is empty so

play12:49

this is a different document ID and this

play12:51

is for 300 Advanced and so on so forth

play12:53

all right so now we have got the

play12:55

document list out so the next step is

play12:58

that so now we've got the document list

play13:00

now let's create the tags okay so for

play13:02

that we will close this API and let's go

play13:04

to the tags API which is right here just

play13:07

below that and open this so in order to

play13:09

create tags what we'll do is we will

play13:12

actually go to the create tag which is

play13:16

right here create KB tag okay which is

play13:18

knowledge based tag all right and so it

play13:21

has zero tags right now if you can see

play13:23

right and the best part is it

play13:25

automatically copies the uh the key so

play13:28

you don't you don't have to reenter it

play13:30

again and again it has already there

play13:31

okay so now if you go here and you say

play13:33

try it it has got a 400 which means

play13:36

error which which basically means that

play13:37

there are no tags right now okay so

play13:40

let's create some tags so in order to

play13:41

create tags what I'm going to do is I

play13:43

will actually go down and uh come to

play13:46

data object okay this is the body

play13:48

patterns which is the parameters so you

play13:50

just create it out here and you can say

play13:52

something like foundation so I'm going

play13:54

to say U you know so what is the name uh

play13:57

this is advanced yoga teacher training

play14:00

let's start with the the first one

play14:02

Foundation yoga teacher training so ytt

play14:05

okay so I'm going to create and say

play14:09

ytt Foundation this is the tag which I'm

play14:12

using right now okay so I'm going to

play14:14

this is a string and uh that's it so all

play14:17

I have to do is now say try

play14:21

it and it's a 200 perfect so it's

play14:24

already created the tag so you can see

play14:25

that this is the tag right now again the

play14:28

tag is not L to the document we're just

play14:30

creating the tags okay so there's a tag

play14:32

ID and there's a tag uh name and we will

play14:36

later uh join this tag ID with a

play14:39

document ID so that U you know it knows

play14:41

exactly what to reference so similarly

play14:43

we'll do it for all four so I'm just

play14:45

going to call this ytt foundation so

play14:48

Advanced all

play14:50

right so then say try it

play14:54

again 200 and it's created this one as

play14:57

well so the next one should be YTD

play15:02

Yin

play15:09

okay okay so this is also created and

play15:12

then finally what was the last fourth

play15:16

one refresh

play15:18

okay so let's call this

play15:24

refresh so tag is something which is

play15:27

easier to remember so just use those

play15:28

names and then again let's create

play15:31

this perfect so it's also created okay

play15:34

so now all the Four Tags have been

play15:35

created now if you go back to the tags

play15:38

API and I want to see the list all right

play15:40

say C KB tag list let's go here and see

play15:44

what all tags have been created so if I

play15:47

go here and say try it now it should

play15:49

show all the Four

play15:50

Tags and there you go so all the Four

play15:53

Tags you we just create this is all is

play15:56

right here okay okay so now we already

play15:59

have the tags created everything is

play16:01

right here okay so let's copy this and

play16:04

put it into a text document as well all

play16:08

right

play16:10

okay all right so now we have all the

play16:13

tag IDs we have already created that

play16:15

okay and then from the previous uh text

play16:17

file if you remember we had the document

play16:19

ID as well so let me just get that grab

play16:22

that right here okay so if you remember

play16:25

we have uh you know all of this uh we

play16:27

have already created the data

play16:29

and the tag was empty okay the tag was

play16:32

empty and this is the data uh the

play16:33

document ID so in the next step what

play16:36

we'll do is we will attach this

play16:37

particular one uh the document to their

play16:40

respective tags so for this is uh 200 uh

play16:45

Foundation yoga teacher program so for

play16:47

this what we'll do is we will actually

play16:49

attach it with the foundation tag okay

play16:51

and then the next time we run this you

play16:53

should see this tag filled about here

play16:56

okay so let's do that

play16:58

so after this what we need to do is we

play17:00

need to attach so there is in the tags

play17:03

API you have something called attach KB

play17:05

tags to the document okay so let's go

play17:08

here and we are here right now okay so

play17:11

there's nothing right now here all right

play17:14

uh in this what it says is that it needs

play17:16

a document ID okay so let's get the

play17:19

document ID so we will copy the first

play17:22

one which is this copy this put it here

play17:29

okay and the data object which is body

play17:32

PM let's open that add

play17:35

string okay so once we come here uh you

play17:38

can see an array what it requires is

play17:41

existing KB tag label so you need the

play17:43

label okay uh which is this so we'll say

play17:47

YT

play17:48

foundation and then we attach it right

play17:51

here okay and that's it so now if you

play17:53

can see it is different uh let me just

play17:56

say try it

play18:01

and we have a status of okay which is

play18:03

that it was a success okay let me do it

play18:05

for all four of them and then we'll see

play18:07

exactly uh whether it's attached or not

play18:09

and how it looks okay okay perfect so uh

play18:13

I've finished for YT refresh that was

play18:15

the last one so I've done it for all

play18:16

four of them okay so after this what

play18:19

we'll do is we let's go back to the

play18:20

document API all right and in the

play18:23

document list so if you now see this is

play18:27

the first document Okay so then when we

play18:29

actually generated this particular one

play18:31

there's nothing in tags this is the

play18:33

document ID but the tag is empty all

play18:36

right and now we have attached the tag

play18:37

to the document so now let's run this

play18:40

again and actually what I'm going to do

play18:42

is I'm going to create another document

play18:44

so you can see all right and let's see

play18:47

this one and uh let's go to the document

play18:50

list which is this

play18:52

one you already have the API and let's

play18:54

say try

play18:56

it okay perfect okay so let's copy this

play18:59

and then put it

play19:01

here perfect so if you see the

play19:04

difference between both the documents

play19:06

okay this is the first one this is the

play19:07

second one in this there is no tags and

play19:10

in this you can see the tag ID now right

play19:13

it's right here ytt Foundation is the

play19:16

first one and if you go down this is ytt

play19:18

Advanced and Yin and refresh okay

play19:23

perfect so now it has attached the

play19:25

document to the particular tag okay so

play19:29

now our API business is finished out

play19:31

here and this is uh so it's all

play19:33

connected now okay great so now uh we

play19:37

have the document list we've already

play19:38

done the tag attachment everything is

play19:41

ready okay so the final thing is that we

play19:43

out here we need to test this as well

play19:45

okay so let's go to the query API now

play19:47

the query API is used to actually query

play19:50

the knowledge base okay and that's what

play19:51

we'll do out here okay so in the query

play19:54

database if you see we have a sample

play19:57

request and we need to use that that in

play19:59

wherever you call the API but let's for

play20:01

now let's test this out here okay so we

play20:03

have a testing interface let's go down

play20:06

and you can ask a question here and put

play20:08

everything out here okay so let me just

play20:10

check real quick okay so we already have

play20:12

our API which basically means that it's

play20:13

all knowledge bases all

play20:15

connected okay so what we can do is

play20:18

Let's test this and uh for the question

play20:20

I'm going to ask uh what is the program

play20:25

pricing okay what is the program pricing

play20:28

chunk limit is equal to two so

play20:31

essentially what is the program pricing

play20:34

we have four documents there and uh this

play20:36

is a very generic question so program

play20:39

pricing can mean whether you are talking

play20:40

about the Foundation program pricing or

play20:42

the advanced program pricing what are

play20:43

you talking about and that is where the

play20:46

tag is going to help the tag which we

play20:47

just created when we say okay the tag is

play20:49

ytt foundation so it will get the

play20:52

pricing for the YTD Foundation which is

play20:55

this okay and uh otherwise if in case we

play20:58

say what is the program pricing for YT

play21:00

Advanced it should actually go to let me

play21:03

just see that real quick okay so it

play21:07

should go to Advanced and then get the

play21:10

pricing for this which

play21:12

is right

play21:14

here let me just see that wow okay which

play21:18

is right here okay so the one is 3600

play21:20

and the other one is 4500 okay so let's

play21:22

test this so I'm going to say what is

play21:24

the program pricing I'm not saying uh

play21:26

anything else and then since says yes

play21:29

true basically means that okay you want

play21:30

the AI to generate the

play21:32

answer settings F tags in tags yes this

play21:36

is include tag add string and then this

play21:39

is where we Define the tag and sorry

play21:41

input the tag which is ytt

play21:45

foundation so now when we try when we

play21:48

actually execute this um query what the

play21:52

system should do is it should go to this

play21:54

particular document uh which is tagged

play21:56

with this tag and then get the price ing

play21:58

for this which is supposed to be 3600

play22:01

okay I think we don't need to include

play22:02

anything else and let's say try

play22:07

it and perfect we got 200 which is okay

play22:11

let's see the output so the output is

play22:13

the tution for a 200 hour

play22:15

foundation yoga training is teacher

play22:18

training is is 3500 perfect this is

play22:22

great okay so it's working fine and

play22:24

let's test this again now with the other

play22:26

tag so I'm not going to change the

play22:27

question I'm just going to change the

play22:29

tag now and I'll say

play22:32

ytt Advanced okay and let's test this

play22:35

and now this should become what is the

play22:38

pricing okay so Advanced is 4500 okay so

play22:41

now this should become 4500 okay and

play22:45

let's see

play22:48

this oh perfect see so now it is giving

play22:52

the response as 4500 so because the tag

play22:55

is different it is YTD Advanced perfect

play22:58

so I this is this is working great now

play23:00

okay so now what we next thing is the

play23:02

next step is to actually Implement all

play23:03

of this functionality into voice flows

play23:05

chatbot and use the API to get uh to

play23:09

kind of query the knowledge base and get

play23:10

the same results okay but this is

play23:12

working fine this is the we are testing

play23:14

the API and the API works right now so

play23:16

it is actually getting all the values

play23:17

from the knowledge base all right so

play23:19

let's head over to voice flow just a

play23:21

quick note I hope you're finding this

play23:23

video helpful and if you are please give

play23:25

it a thumbs up and drop a comment below

play23:27

making these videos takes a lot of time

play23:29

and effort so your support really helps

play23:31

this Channel and encourages me to keep

play23:33

going and making more content like this

play23:35

for you also I love Automation and on

play23:38

this channel my goal is to create many

play23:40

more videos where I show you step by

play23:42

step how to use AI to automate repeative

play23:44

task to boost your business productivity

play23:47

so if you're interested in this kind of

play23:49

content hit the Subscribe button below

play23:51

so you never miss out when I post a new

play23:53

video if you'd like to work with us you

play23:55

can schedule a free 30- minute Discovery

play23:57

call with me and for that also I'll

play24:00

leave the link in the description and

play24:02

lastly we've recently launched our free

play24:04

AI automation community and it's a

play24:06

dedicated place to meet and network with

play24:09

like-minded AI enthusiasts ask questions

play24:12

and learn from each other share wins

play24:14

request videos and access my free

play24:16

YouTube resource and more and that is

play24:18

just the beginning so if you are eager

play24:20

to explore the Limitless possibilities

play24:22

of AI automation this is your golden

play24:24

ticket I'll drop a link to in the

play24:25

description in case you're interested in

play24:27

joining the AI community okay let's get

play24:29

back to our video okay so now we are

play24:31

back in the assistant uh this is the

play24:33

knowledge base so let's go to the

play24:34

workflow this is where we will Design

play24:36

our AI agent okay and then you can start

play24:40

addit workflow and we are here I don't

play24:43

know how this got there so it's a blank

play24:45

canvas right now so let's start putting

play24:47

some stuff out here uh the first thing

play24:49

I'm going to do is I will actually put

play24:51

in a text just say connect this

play24:55

thing welcome to Vasa

play24:58

how can I help you

play25:01

today okay so let's put this and this is

play25:05

there after that what we can do is we

play25:06

can actually add some

play25:08

buttons so the buttons are for the 10 so

play25:12

we can actually say hey uh this is for

play25:15

YTD

play25:17

foundation so and then add a button we

play25:22

can put

play25:23

in

play25:26

ytt add r

play25:29

and so on so forth so we'll create those

play25:30

four buttons so we have these four

play25:32

buttons right here and then they connect

play25:34

to something like so the moment the uh

play25:36

the user comes in he says welcome to

play25:38

vikasa how can I help you today and then

play25:40

of course he sees these four options now

play25:42

when we are quitting the knowledge base

play25:45

okay it can be only one uh at a time so

play25:48

one document at a time in the sense that

play25:50

when you're asking questions you will

play25:52

know want to know about the ydt

play25:53

foundation or the ydt advanced or Yin or

play25:56

refresh whatever the case is okay so we

play25:59

will use and so we will send this

play26:02

information to the API which we just

play26:03

created the knowledge base so that it

play26:06

Returns the uh the correct answer all

play26:09

right but so we have four different

play26:12

options here depending on what the user

play26:14

chooses okay and then we need to store

play26:16

that so that we can send that to the

play26:18

knowledge base so for that basically we

play26:20

will create a variable a variable is

play26:22

nothing but it's just a holding Place uh

play26:25

which tells once the user selects this

play26:27

uh White Foundation that is what it

play26:30

holds and then it is passed on to the

play26:32

knowledge base saying that hey the user

play26:34

wants the information for ytt foundation

play26:37

uh using this question or okay or about

play26:40

this question

play26:41

sorry okay so uh what I'll do is I will

play26:44

just quickly create a variable uh let's

play26:47

see when you actually connect this it is

play26:50

in the actions we'll go to something

play26:52

called set variable and we won't have it

play26:55

out here so let's create one when you

play26:57

click on this this thing there's an

play26:58

option to create a

play27:00

variable and I'm going to call it

play27:02

something like U test here and I'm going

play27:04

to say program you can name it anything

play27:07

you want it doesn't matter okay you can

play27:08

call it strr program you can just call

play27:10

it program you can call it underscore

play27:12

program whatever you prefer okay and the

play27:14

description of this is that it uh tells

play27:18

us what exactly

play27:20

is uh What uh

play27:22

program tells us what

play27:26

program has the user selected okay it'll

play27:31

all start making sense just give me some

play27:33

time okay and say just create variable

play27:36

so now it's created the variable okay so

play27:38

what we'll do is enter value applies to

play27:41

this thing so once this is so let's say

play27:44

for example when I run this bot so

play27:46

welcome to vikasa how can I help you

play27:48

today and then you have YTD Foundation

play27:50

Advanced YTD Yen and refresh okay so

play27:52

when he selects this we want this

play27:54

program this s Str program which is the

play27:56

variable we just created to have the

play27:58

value ytt Foundation when he selects

play28:00

this that particular uh variable will

play28:03

have the uh the value Yen and so on so

play28:06

forth okay and so that is the reason we

play28:08

have this and so once you go here it'll

play28:10

go here and it'll of course there's

play28:12

nothing connected so it'll finish off

play28:14

but this is how it is done so again

play28:16

it'll all start making sense in some

play28:19

time okay so all four of them are done

play28:22

now so basically when he selects this

play28:24

thing this is going to get U active uh

play28:26

this the value of the St program the

play28:28

variable which we have is going to be

play28:30

this okay and I'm going to show you how

play28:31

it'll all tie up so now the next step is

play28:35

that uh we will ask the question okay so

play28:38

let's ask the question to the user for

play28:40

that we will use a

play28:41

text so we can say something

play28:46

like what is your question and this is I

play28:50

mean of course you know don't we can

play28:52

always change the text but this is just

play28:54

to for example so what is your question

play28:56

for uh

play28:59

program and then we will open the

play29:01

bracket and you can see SDR program

play29:04

right here and we will use this

play29:08

okay all right so basically what's going

play29:10

to happen is it's going to say what is

play29:12

your question for the program ydd

play29:14

Foundation or ydd Advanced or whatever

play29:16

the user selects based on that it will

play29:18

actually uh assign that okay and let's

play29:20

connect this to all one

play29:24

two three and four okay

play29:28

so this is done after this then what uh

play29:32

is your question for the program and

play29:34

then you need to use a capture step so

play29:37

where is the capture this is basically a

play29:39

capture step which will actually capture

play29:40

the user's input because you're asking

play29:42

them a question right so then now they

play29:44

need to input and uh this goes into last

play29:47

utterance which is whatever the user

play29:50

inputed so now what we have is we have a

play29:53

capture step and in this the user is

play29:55

going to whatever the user enters uh

play29:57

this this is going to be captured in the

play29:59

last atance I like using variables so

play30:02

similar to what we did out here like you

play30:04

know we used the SDR program uh to

play30:06

capture what user was inputting as a

play30:09

program Choice what we'll do is we'll

play30:10

create two more variables so let's go

play30:13

and create two more variables one is

play30:15

question asked so uh we call the

play30:17

variable question asked which means that

play30:20

whatever the user inputs in the capture

play30:22

step it is in last utterance but uh I

play30:24

prefer using uh questions asked

play30:26

basically as an creating own variable

play30:28

okay so we'll do that and the next is

play30:31

answer okay and what basically means

play30:33

that when we connect it to the step and

play30:36

the API returns an output that will be

play30:39

captured in the variable again it's

play30:41

going to make sense once I do it so let

play30:43

me just create those variables right now

play30:46

just going to go back where you have

play30:48

variables right now you can see all the

play30:50

variables are right here and I can

play30:52

create a new variable okay so I'm going

play30:54

to create something called question

play30:58

a

play31:00

okay let's create this you can put a

play31:02

description or you can let it be it

play31:04

doesn't matter and uh then is the next

play31:07

one is

play31:09

answer oh

play31:12

sorry okay now let's done let's create

play31:15

this as

play31:16

well okay so we have two more variables

play31:19

two new variables and uh you can always

play31:21

add a description if you want uh so I'm

play31:23

going to add that later on okay now

play31:26

let's go back to our

play31:31

agent okay so we are right here okay so

play31:34

once the user enters captur in the

play31:37

capture step what I'll do is I will

play31:38

after this action I'll say set variable

play31:41

and applies to we just created question

play31:44

asked okay and then the value of this

play31:47

should be last utterance so this is what

play31:50

last utterance a system variable so this

play31:52

is what it actually captures from the

play31:54

user when he enters that and I'll show

play31:56

it to you okay and it those goes into

play31:58

this thing uh into questions asked so

play32:00

let me just show you exactly what I

play32:02

captured uh let's put a text step

play32:06

here and I'm going to say just to be

play32:08

more clearer let's say stdr

play32:11

program is equal to and then I'm going

play32:14

to put an stf

play32:15

program value and this is just going to

play32:18

Output it so that you know exactly what

play32:20

the variables values are and what is

play32:22

coming in and the next is what we just

play32:24

created question asked question

play32:29

is asked okay and which is equal to and

play32:32

then question asked all right so the

play32:37

purpose of this particular block is that

play32:39

it will just input what the user has

play32:41

selected okay so let's run this and I'm

play32:43

going to show this to you so that it

play32:45

makes sense why we creating or using

play32:47

variables okay welcome to vikasa how can

play32:50

I help you so let me this time I'm going

play32:51

to use YTD

play32:53

Advanced

play32:56

okay so what is your question for

play32:59

program YTD Advanced and I can say what

play33:03

are the start

play33:06

dates for the program okay or something

play33:10

like

play33:11

that

play33:13

and if you if you see out here the value

play33:16

St Str program is equal to Y Advanced

play33:18

and the question asked the the Val the

play33:20

variable value is what are the start

play33:23

dates for the program I'm sorry for the

play33:25

mistake out here uh the start mistake

play33:27

okay

play33:28

uh so this is exactly what it is sending

play33:31

to the API okay these are the two values

play33:33

basically so it'll send this question

play33:35

and it the S Str program is uh YTD

play33:37

Advanced so now what is going to happen

play33:39

is that the API is going to look at this

play33:42

document the advanced document and it is

play33:44

going to see how can I answer this

play33:46

question what are the start dates for

play33:48

this program and then it is going to get

play33:50

a response back okay and that response

play33:53

we will capture in the variable which is

play33:54

created which is called the answer okay

play33:57

and I'm going to show that to you but

play33:58

first what we'll do is we will actually

play34:01

U configure the API and uh that we'll do

play34:04

right now all right so for configuring

play34:07

that API what we'll do is we will go to

play34:09

the API step let's put it out here we

play34:12

connect this so that it goes inside here

play34:14

and okay so this is where we will need

play34:18

to actually get a lot of information I'm

play34:19

going to use information from here uh

play34:22

from this particular thing okay so the

play34:25

first thing is it's asking where whether

play34:27

it's a get or a post response so a PO

play34:30

get is generally to get information out

play34:32

a post is that you are actually giving

play34:35

some input to the API all right so right

play34:38

here we are sending in uh we are sending

play34:40

in the two uh two variables right here

play34:42

question asked and SDF program so we'll

play34:44

use a post which basically means that we

play34:46

are sending these two variables and

play34:48

based on this please give us the answer

play34:50

okay and uh after this is your header

play34:53

and uh so we need a URL so for this we

play34:56

will go here and copy this

play34:59

URL

play35:02

okay the next is the header so header is

play35:05

where you need to put in your API key

play35:07

okay because it needs to be

play35:09

authenticated it needs to know that okay

play35:10

it this is coming from this particular

play35:12

agent which has got this API key so API

play35:15

key is sort of an identification all

play35:17

right so we will use this this is the

play35:19

API key which we were using and so we

play35:21

will copy this and of course it has to

play35:24

have a key value pair

play35:26

so we will use authorization here

play35:29

okay I'm just going to type it in small

play35:32

cases

play35:35

authorization

play35:37

okay so this is done okay and uh so now

play35:42

it is basically when it sends the

play35:43

request it will send the API key along

play35:45

with this so that the system knows that

play35:47

oh it's coming from this particular AI

play35:48

agent and this is what I need to know

play35:50

what I need to do

play35:51

sorry the params so params is the

play35:54

parameters the parameters are these two

play35:57

values okay so now here we'll go into

play36:01

query

play36:03

API okay so basically this is so when

play36:08

you query uh the query API is that

play36:10

you've already created the documents

play36:11

you've created the tags now whatever

play36:13

query comes from the user I'm going to

play36:15

use that and I will actually generate a

play36:17

response in the AI and then send it back

play36:19

to you okay so that is what exactly this

play36:22

quy API does okay and it needs a format

play36:26

in the body should be in this format

play36:28

okay so this is of course a sample

play36:30

request so we will modify this according

play36:32

to us and so let's go back and we'll

play36:35

paste it out here uh from our system

play36:37

what we actually had generated initially

play36:39

so I think now everything is all set uh

play36:42

you know it's everything connected let's

play36:43

take a quick check on everything so the

play36:47

API the URL should be a post Tye because

play36:49

we are sending in the variables uh we

play36:51

are sending in those two variables you

play36:52

know the question asked as well as uh

play36:55

what is this St strr program and then we

play36:57

getting a output back so the the API

play37:00

type should be post and then after that

play37:02

you are doing the URL so the URL should

play37:05

be from here and you'll pick this up in

play37:08

the query this is the URL okay and uh

play37:12

yeah and then the authorization in the

play37:13

headers make sure that you need you need

play37:15

to put in the API key and the second

play37:17

header make sure that you put in

play37:19

content-type is application uh / Json

play37:23

this is important uh because without

play37:25

this I've seen that the system uh you

play37:27

know it has unexpected Behavior so it's

play37:29

always better to put this okay then we

play37:31

have the parameters which are the

play37:33

variables and then of course um this is

play37:35

our ra Json and we are ready to test one

play37:38

important thing I wanted to cover I just

play37:39

wanted to let you guys know is I just

play37:41

copy this and I'm going to show it to

play37:43

you if you see the code and this is

play37:45

important because the thing is that and

play37:47

I spent a lot of time on this actually

play37:49

because I was not able to figure this

play37:50

out the quotation marks is double quote

play37:53

should be like this because when you are

play37:54

actually writing it and typing it and

play37:56

you do a quote from the keyboard it

play37:58

comes like this you see the difference

play38:00

let me just actually yeah see this is

play38:03

the double quotes from the keyboard and

play38:05

this is the quote it is expecting and it

play38:07

just uh you know behaves weirdly and the

play38:10

answer output is not exact and so I was

play38:12

testing it and I was not able to figure

play38:14

out exactly what's going on wrong and

play38:16

then when I actually uh copied this that

play38:18

is when I came to know okay so just copy

play38:21

this and put it out here and should be

play38:23

all good to go okay it's the same thing

play38:25

out here so this is fine okay

play38:27

and now let's test it so uh we'll do a

play38:31

first uh regular test through this thing

play38:33

uh let's test it from here itself and

play38:36

then we'll run the whole program so the

play38:38

question asked is what is the program

play38:40

pricing and right now I'm using a tag

play38:42

YTD Foundation okay so if you notice

play38:44

what is the program pricing now what is

play38:46

a program pricing is a generic question

play38:48

because if you go to vikasa it can be so

play38:51

what is the program pricing can be for

play38:53

the advanced yoga or it can be for

play38:58

uh Foundation yoga or it can be for Yin

play39:00

or refresh anything all four any any of

play39:02

the four of them okay so it is a generic

play39:05

thing and based on the tag the system

play39:07

will respond you know when I say YTD

play39:09

Foundation now the system knows that

play39:10

okay we need to say Pro program pricing

play39:12

for we need to see the program pricing

play39:14

for YTD Foundation now if I do the tag

play39:17

as YTD Advanced it should give the price

play39:19

for uh the advanced uh right here the

play39:22

300H hour Advanced uh pricing okay so

play39:25

now let's test this for ydd foundation

play39:28

right here and let's say

play39:31

generate and now it's going to the API

play39:34

and it's going it's got the result back

play39:36

we have a 200 okay and now if we go to

play39:38

the output let's see the output the

play39:40

output of the tution is okay it's right

play39:43

here okay

play39:45

3,500 and I'm going to test it again

play39:47

with Advanced I'm not going to change

play39:49

the question and that's where the

play39:50

tagging actually helps let's say send

play39:52

request again but in this case I'm going

play39:54

to make this as YT advanced

play39:58

all right and let's see generate now it

play40:01

should give you the pricing for YTD

play40:03

Advance which is

play40:04

4,500 yeah so this is Advanced which is

play40:07

4,500 and that should be your answer so

play40:10

if you go down and we see the output the

play40:12

output is the pricing for 300 Advance

play40:15

perfect is

play40:17

4,500 okay so that is the beauty of

play40:20

tagging so when you actually tell the

play40:21

system that okay just use this

play40:24

particular document or this particular

play40:25

page to answer the question

play40:28

uh it actually just uses that page

play40:29

information okay uh so all right so now

play40:32

this is we have done this raw let's use

play40:35

the system to actually generate the

play40:36

response so what we'll do is let's run

play40:39

this from here and run

play40:45

test okay so welcome to Vasa how can I

play40:48

help you today and I'm going to say ytt

play40:52

Foundation what is the question for

play40:54

pricing so I'll say pricing that's it

play40:57

nothing else and let's see what it comes

play40:59

up

play41:02

with excellent so the tuition for 200 R

play41:05

Foundation yog Got Run is 3,500 okay so

play41:08

again let's run this one more

play41:10

[Music]

play41:13

time and now I'm going to say

play41:19

Advanced what is the question again I'll

play41:22

say pricing that's it

play41:30

the pricing for 300H hour advanced yoga

play41:32

is 4,500 perfect okay so as you saw this

play41:37

is working perfectly now and we got the

play41:39

tags working and this is how you

play41:41

actually connect I use the tags uh with

play41:43

the documents uh so that you can

play41:45

actually uh you know your knowledge base

play41:47

is highly accurate and uh yeah so

play41:50

hopefully you found this video helpful

play41:52

and that's it now we have created a

play41:54

highly accurate knowledge base in voice

play41:56

flow using TX API I I hope you like this

play41:58

video and found it helpful also we are a

play42:00

full service AI agency so if you need

play42:02

help with building an AI agent or some

play42:05

other AI project for your business do

play42:07

check out my AI automation agency flip

play42:09

bites you can also schedule a free 30-

play42:12

minute Discovery call with me I'll drop

play42:14

all the links in the description finally

play42:17

here's another awesome step-by-step

play42:18

video on how to create a lead generation

play42:21

air chatbot from scratch or you can

play42:23

watch another video that I'm sure you'll

play42:26

find very use useful I can't wait to see

play42:28

you in future videos thanks for watching

play42:30

and I'll see you next time

Rate This
β˜…
β˜…
β˜…
β˜…
β˜…

5.0 / 5 (0 votes)

Related Tags
AI Knowledge BaseVoiceflow TagsChatbot CreationAPI IntegrationData StructuringAI EfficiencyTagging SystemKnowledge ManagementWeb ScrapingAutomation Techniques