Karabo
Karabo•8mo ago

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:
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
Jump to solution
8 Replies
Solution
Shams
Shams•8mo ago
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
Shams
Shams•8mo ago
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.
Karabo
Karabo•8mo ago
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?
Shams
Shams•8mo ago
yes, @Luis can you make template for this use case
Karabo
Karabo•8mo ago
Thanks, I'll wait for it.
Luis
Luis•8mo ago
Sure I'm on it.
Luis
Luis•8mo ago
@Karabo, i've added this template to help you out. It's basically following the same logic Shams highlighted above.
No description
Karabo
Karabo•8mo ago
Ok so I just tried it and it works flawlessly, thanks a lot!👌 This is great.