Supademo Logo

Update FAQ table with Q&A

Build a tool that inserts a new question answer pair to an FAQ knowledge table.
Get Started
Blurred step underneath chapter
Demo Image 2
Demo Image 3

FAQ-EMAIL: Update FAQ table with new question and answer paire.

S

Updated: Jun 28, 2024

Description

Build a tool that inserts a new question answer pair to an FAQ knowledge table.

Steps

1
Update FAQ table with Q&A
2
On the Tools page, click on "New".
3
Afterwards, click on "Create Tool".
4
Click here.
5
Video step
6
Give it the description: “Add new question/answer pair to FAQ table”.
7
Video step
8
Give it an icon. I chose a question mark emoji for this one.
9
After that, click on "Add input".
10
Then, click on "Text input".
11
Call this text input "Question".
12
Video step
13
Write a descriptive description to help the agent understand what input this tool needs.
14
Video step
15
Write an example question to use for testing.
16
Video step
17
Click on the little setting cog.
18
Click on “Set current value”, so you don’t have to type in a new question every time you want to test this tool.
19
Change the variable name to be more descriptive too, e.g. question
20
Video step
21
Click on "Long text input".
22
Call it "Answer".
23
Video step
24
Write a descriptive description to help the agent understand what input this tool needs.
25
Video step
26
Provide an example answer to your question, and set it as the default answer via the little cog again.
27
Rename the variable to "answer".
28
Video step
29
Once that's done, click on "Add step".
30
Click on "Insert data to knowledge".
31
Click on "Expand".
32
Then click on “Invalid value”, and select your knowledge table, e.g. “faq_table”.
33
Add the answer and question input variables inside the double quotes like this: .
34
Video step
35
Video step
36
Next, click on "Run all".
37
This is the faq_table before running the tool we just created.
38
This is the faq_table after inserting the new question and answer pair through our tool.
FAQ-EMAIL: Update FAQ table with new question and answer paire.