Hello Guys, I am trying to setup an AI chat agent in workflow. I am looking for a way to send a contacts chat history to n8n, whenever a contact replies to a message.
Basically, What I am trying to do is whenever a lead reply, I would like that when the response is been sent through the webhook, it should contain the contact’s whole chat history, so that the AI agent, can use that to respond in context, and be able to reference past conversations. Thanks
hello
I have read your question
One think that is missing if from where the message comes?
Let’s say it comes from telegram,
You will trigger upon that message coming to your account,
Now, you need to connect to telegram api and filter it to bring the relevant chat history
If its not telegram, its soemthing else, and it is probably usage of another api, but the call may differ between different services,
however, i hope or belive the architecture should be the same:
trigger msg recieved → call api to bring chat history → the rest of your flow as intended