Karabo - Hi, I'm using the OpenAI assistant nod...
Hi, I'm using the OpenAI assistant node it needs a thread id for each user, I'm using twilo to receive and send WhatsApp messages. I don't know how to store the thread id can anyone help?
Solution:Jump to solution
you can use the buildship database nodes to store/retrive data, the first time user sends the first message, you can make the document with their number as the id, store the auto generated threadId in it, the second time you can check if the document with their number exists you can retrive the document and get the threadId to use in the assistant
8 Replies
Solution
you can use the buildship database nodes to store/retrive data, the first time user sends the first message, you can make the document with their number as the id, store the auto generated threadId in it, the second time you can check if the document with their number exists you can retrive the document and get the threadId to use in the assistant
BuildShip Database – BuildShip
A unified resource to start building your backend with low-code. Dive into triggers, nodes, and step-by-step guidance to jumpstart your workflow creation.
Hi
I understand your explanation but I'm strugling to implement it. I tried but it is not working, maybe I'm dong it wrong. Can you please explain futher how to do it or show me?
yes, @Luis can you make template for this use case
Thanks, I'll wait for it.
Sure I'm on it.
@Karabo, i've added this template to help you out. It's basically following the same logic Shams highlighted above.
Ok so I just tried it and it works flawlessly, thanks a lot!👌 This is great.