Create an ai agent with whatsapp and 360 Dialog - thread ID

Hello, I am struggling to find the right Thread ID to refer to my agent (restaurant reservation agent) so he knows the history of messages linked to the same request.

I inquired 360 Dialog and they advised to save the wamid.ID of the first message in each request and use it as your temporary thread identifier.

Any ID of how I could do this ?

Integrating an AI agent with WhatsApp via 360Dialog is a great way to automate customer interactions. You’ll need to connect your WhatsApp Business API through 360Dialog, then link it to a platform like Make or Dialogflow for message handling. Once connected, you can design workflows for FAQs, lead capture, or scheduling—just ensure proper webhook setup for real-time message delivery.

thank you for your reply. Actually the question is : which ID should I use to create a thread of messages are link them altogether. After further investigating the subject with 360 Dialog support, it appears that best solution is to take the correspondent phone number as Thread ID