Hi there 👋, Objective: I want to connect a Dust bot with my Lovable front to engage into a conversation with my bot. -> I have connected the bot with lovable thanks to the Dust node. Problem:
I cannot have a real conversation with the bot as it doesn't save the historic of the conversation (only the last message from lovable as it is the first).
I have tried to save the history as a table but did not work as the node can only take a string as an input.
I have tried to concatenated the different messages into a string but did not really manage to do it for now (still exploring this way)
Do you know if there is a simple way with the DUST node to keep the history of the discussion to have a real conversation with the bot? Or is it mandatory to go through API calls with different HTTP nodes? Thanks 🙂
I'm not familiar with Lovable, but there are two different Dust APIs: one to create a new conversation, and one to add a message to an existing conversation. It seems you are always using the former, so it starts a new conversation each time. If you use the latter, it should work, but you will need to keep track of the conversation ID. Doc reference: Create conversation: https://docs.dust.tt/reference/post_api-v1-w-wid-assistant-conversations Add message: https://docs.dust.tt/reference/post_api-v1-w-wid-assistant-conversations-cid-messages
Ok thanks! So
I have to create a custom API call thanks to an HTTP node (no possibility to use the pre-build DUST node in N8N
I should first create a new conversation thanks to the first API
Get the configuration ID that is created
Use this Id with the second API to keep track of the conversation
Is this right ? 🙂
Thanks a lot!
