Trying to link my ai agent to facebook page so it can reply to queries.
Can’t seem to figure out how I can mark the replied to conversations as done.
It looks like your topic is missing some important information. Could you provide the following if applicable.
- n8n version:
- Database (default: SQLite):
- n8n EXECUTIONS_PROCESS setting (default: own, main):
- Running n8n via (Docker, npm, n8n cloud, desktop app):
- Operating system:
Hey @kasuba
I see you’re trying to mark Facebook conversations as “Done” after your AI Agent replies. You can achieve this using the Facebook Messenger API.
Solution 1: Use an HTTP Request Node
After your AI sends a reply, add an HTTP Request node in n8n and configure it as follows:
• Method: POST
• URL: https://graph.facebook.com/v19.0/{PAGE_ID}/conversations
• Headers:
{
“Authorization”: “Bearer YOUR_PAGE_ACCESS_TOKEN”,
“Content-Type”: “application/json”
}
• Body (JSON):
{
“recipient”: { “id”: “{{USER_ID}}” },
“message”: { “text”: “Marking conversation as done.” },
“messaging_type”: “RESPONSE”,
“tag”: “CONFIRMED_EVENT_UPDATE”
}
Solution 2: Use Facebook’s “Mark as Done” API
Alternatively, you can send a request to Facebook’s “Mark as Done” API:
• URL: https://graph.facebook.com/v19.0/{THREAD_ID}
• Method: POST
• Body:
{
“recipient”: { “id”: “{{USER_ID}}” },
“messaging_type”: “RESPONSE”,
“tag”: “HUMAN_AGENT”
}
This will officially mark the conversation as handled.
Let me know if you need help setting this up!
are you still here?
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.