Share feedback, ideas and get community help

Updated 6 months ago

Typebot.io results question

At a glance

The community member has two questions: 1) Is there a way to access the Typebot results database via an API to build a dashboard? 2) How can they store the entire conversation history when using an LLM system, as the variables {{bot_response}} and {{user_response}} get overwritten with each new response.

In the comments, another community member confirms that the Typebot results can be accessed via the API, and that the community member would need to store the responses in variables to save the full conversation history. However, they suggest that there may be a better way to store each new user message rather than using a new variable name.

The community members discuss the end goal, which is to be able to generate daily reports of interesting chat conversations for a client. They determine that the solution is to append variables to the chathistory variable.

There is no explicitly marked answer, but the community members seem to have resolved the issue.

Useful resources
I have 2 questions. The results tab (submissions & analytics)

  1. Is there a way to access this database via an api? For example, to build a dashboard to display metrics to.
  1. I am using a RAG+LLM system and the user may ask several questions and the LLM will respond several times so each time the bot replies the variable {{bot_response}} is overwritten and each time the variable {{user_response}} is overwritten. Is there a way to use the typebot database to store the whole conversation? I guess I could +1 to the variable name so it would be {{bot_response_1}}, {{bot_response2}}, etc. but this doesn't seem like a good solution.
B
d
7 comments
  1. Yes: https://docs.typebot.io/api-reference/results/list
  2. You would have to store it into variables indeed if you'd like to save the whole history
RE: #2
Since using an LLM in a looped flow is quite a common use case (for example via the chatnode integration, or other api request) is there no better way to store each new user message rather than give a new variable name?
Why do you need that, what’s the end goal?
I’ll be able to better help you if I understand what you’d like to have in the end and why 🙂
So the usermessage gets sent to chatnode, and the result is set as bot response. Then the user asks a follow up question. Currently this overwrites the user message, right? So we lose that part of the chat history. It would be good to be able use the api to generate a daily report of interesting chats for the client.
Okay so I've finally understood that you can append variables to chathistory variable.
Add a reply
Sign up and join the conversation on Discord