Responding to Facebook Page Messages with Open AI API

Hello everybody!

I am trying to let ChatGPT respond to my Facebook Page Messages. I started trying the integration through Zapier for the beginning, to see if it is worth it for me to start my own set up.

The setup with Zapier was very easy and at the beginning everything was working fine during my tests. But after a while i remembered that messages tend to be send not in one single message, but in multiple messages one after another.

Case 1:
User: Hello, can you help me to write an essay?

Case 2:
User: Hello
User: Can you help me
User: To write an essay

The Zap is working perfectly in “Case 1”. In “Case 2” the Zap is triggered three times and the User receives 3 messages back.

Is there a way to appened all those messages, so that ChatGPT can reply within a single message?

I am searching for ways not only in Zapier.

I hope that i explaind the problem i am facing somehow understandable and thank everyone for ideas or solutions!