n8n: reply to messages and comments
Every message and comment reaches n8n; your workflow decides the reply; Autoobot sends it at the channel’s safe pace.
1. Import the workflow
In n8n, choose Import from URL and paste:
https://autoobot.com/developers/n8n-workflow.jsonIt has four nodes: Autoobot webhook → A person wrote (only message.received and comment.received) → Your reply → Reply through Autoobot.
2. Add your API key
In the node Reply through Autoobot, create a Bearer Auth credential with your key from API & MCP. The node sends the event’s id as Idempotency-Key, so a run repeated by n8n never sends the reply twice.
3. Point Autoobot at n8n
Open the Autoobot webhook node, copy its Production URL, paste it as the webhook address in API & MCP, activate the workflow, and press Send a test event.
4. Put your AI in the middle
Replace Your reply with an AI Agent node (or any lookup). Give it the person’s words and context from the event:
{{ $json.body.data.message.text }} the message or comment
{{ $json.body.data.conversation.contact.name }} who wrote
{{ $json.body.data.asset.channel }} facebook, instagram, whatsapp or tiktok
{{ $json.body.data.conversation.kind }} message or comment
{{ $json.body.data.conversation.post.title }} the post a comment is onOutput a field named reply, and keep conversation_id and event_id for the last node. Need the whole conversation? Add an HTTP Request to GET https://autoobot.com/api/conversations/{id}/messages.
5. Let your system answer
In Autoobot, set the asset’s automatic replies to Your system so its own bot stays quiet, and turn off comment campaigns on the posts n8n answers.
{"text": "…", "private_reply": true}.