How to use AI Chat Completion and Assistent

Does anyone have a full tutorial on how to use these two options? Inside each one there are several fields to fill in and I don't understand what to do. Unfortunately the docs don't have much explanation https://docs.typebot.io/editor/blocks/integrations/openai#tools For example, in this image taken from the link above, why are you using the append variable? don't get the logic
No description
4 Replies
Baptiste
Baptiste2y ago
You append the assistant message to a Chat history variable The Chat history is a basically a list of all the messages between user and assistant here and we pass it to the "Dialogue" option so that it parses the entire conversation and ultimately remember things
George
GeorgeOP2y ago
Thanks! With the growth of the conversation history, does it spends more tokens with each response due to the size of the history? I imagine that the history is attached to the prompt + user question evertyime. I don't know if I'm thinking right here
Baptiste
Baptiste2y ago
Yes, it spends more token, that's the tradeoff of remembering the conversation! To spend less, you could potentiatlly ask chatgpt to summarize the conversation at some point and feed the summary to subsequent OpenAI blocks
George
GeorgeOP2y ago
A summary, nice insight! gonna test it, thanks

Did you find this page helpful?