Outside API call into Pickaxe using N8N with WhatsApp Trigger

I’m very appreciative of the recent development regarding the new API connection into Pickaxe’s. I have been playing around with this new feature and have been able to create a custom GPT which calls the API and pulls through the data stored in the knowledge base. I’ve also created a WhatsApp trigger in N8N, which again can pull details directly into a message. Anything I ask pulls from the desired pickaxe, although I’m not sure if I’m doing something wrong or if this is not possible, but each API request starts a new “chat” and doesn’t follow on from the previous correspondence. I’m wondering if anyone could help and clarify “userId string” and “conversationId string” and what I might need to do to allow full conversations in platforms outside pickaxe through the API. Thanks in advance

@brett1321, to keep the context, you need to use the same conversationId.

You can choose any value here, and you can also add a value dynamically with n8n.

If you are building this tool for your clients (as opposed to use it internally), you need to keep a database with key-value pairs (userID > conversationID) and make sure n8n passes the correct conversation ID depending on the user ID

Hi @ab2308

Thanks so much for your help. I was on the right track, but I didn’t realise it was case-sensitive.
For anyone looking to do this, don’t make my mistake of using a capital (D) at the end of userID & conversationID; it must be lowercase (d) as it shows on the website, but that’s my oversight.
This is a fantastic development for Pickaxe, having the API request, which has made my project much more accessible. Thanks to the team