I need to export the Freshchat conversations data in real time to a database.
This data would precisely be the payload from serverless event onConversationUpdate.
I thought of some solutions, but each one has a problem:
-
I could listen to serverless events onConversationCreate and onConversationUpdate, get the payload data and sent to a endpoint. Problem: The Request Method has a rate limit of 50 per minute. The account has about 150 agents, you can image the amount of conversations being created/updated every minute.
-
I could use Freshchat webhook to send to my endpoint. But the account is integrated with Freshbots, so webhook is already being used.
-
This would not even be in real time: use the Freshchat API to get the conversations in every minute, but surprise, there’s no endpoint to get all conversations, the available conversation GET endpoint needs the conversation_id, and does not even return the data that I need.
So, someone can image how I could accomplish my objective?