When you receive a message through the chat webbook, you can reply back to the thread using this API. Use the email you received through the chat and send it back through this API to reply back.
This is the same API you can connect to ChatGPT or other LLMs for AI-based replies.
Authorization type: Domain
curl -X "POST" "https://getchipbot.com/api/v2/connect/accounts/{accountId}/domains/{domainId}/messages" \
-H 'Authorization: {token}' \
-d $'{
"email": "",
"message": ""
}'