{
    "name": "MeeChat AutoReply Flow",
    "nodes": [
        {
            "parameters": {
                "httpMethod": "POST",
                "path": "meechat-inbound",
                "options": {}
            },
            "name": "Webhook",
            "type": "n8n-nodes-base.webhook",
            "typeVersion": 1,
            "position": [
                460,
                300
            ]
        },
        {
            "parameters": {
                "method": "POST",
                "url": "http://your-meechat-domain.com/api/v1/autoreply/webhook",
                "sendHeaders": true,
                "headerParameters": {
                    "parameters": [
                        {
                            "name": "Authorization",
                            "value": "Bearer YOUR_API_TOKEN"
                        },
                        {
                            "name": "Content-Type",
                            "value": "application/json"
                        }
                    ]
                },
                "sendBody": true,
                "bodyParameters": {
                    "parameters": [
                        {
                            "name": "message_id",
                            "value": "={{$json[\"body\"][\"message_id\"]}}"
                        },
                        {
                            "name": "assignment_id",
                            "value": "={{$json[\"body\"][\"assignment_id\"]}}"
                        },
                        {
                            "name": "force_mode",
                            "value": "ai"
                        },
                        {
                            "name": "extra_context",
                            "value": "Processed by n8n"
                        }
                    ]
                },
                "options": {}
            },
            "name": "Trigger MeeChat Reply",
            "type": "n8n-nodes-base.httpRequest",
            "typeVersion": 3,
            "position": [
                680,
                300
            ]
        }
    ],
    "connections": {
        "Webhook": {
            "main": [
                [
                    {
                        "node": "Trigger MeeChat Reply",
                        "type": "main",
                        "index": 0
                    }
                ]
            ]
        }
    }
}