# Make.com Webhook Integration ## Webhook URL ``` https://tasks.lilassistance.com/webhook.php ``` ## Supported Data Formats The webhook accepts JSON data and automatically detects the type. You can send: ### 1. Single Message ```json { "message": { "ts": "1234567890.123456", "text": "Hello world", "user": "U123456" }, "channel": "C123456" } ``` ### 2. Bulk Messages ```json { "messages": [ { "ts": "1234567890.123456", "text": "Message 1", "user": "U123456", "channel": "C123456" }, { "ts": "1234567890.123457", "text": "Message 2", "user": "U123457", "channel": "C123456" } ] } ``` ### 3. Channels ```json { "channels": [ { "id": "C123456", "name": "general", "is_private": false, "topic": { "value": "Company announcements" } } ], "workspace_id": "T123456" } ``` ### 4. Users ```json { "users": [ { "id": "U123456", "name": "john.doe", "real_name": "John Doe", "profile": { "email": "john@example.com", "display_name": "John" } } ], "workspace_id": "T123456" } ``` ## Make.com Setup 1. **Slack Module**: Use "Watch Messages" or "List Messages" 2. **HTTP Module**: Make a request - URL: `https://tasks.lilassistance.com/webhook.php` - Method: POST - Headers: - Content-Type: application/json - Body: Map the Slack output to JSON ### Example Make.com Mapping for Messages If Slack outputs messages in an array, map it like this: ``` { "messages": {{array}} } ``` Or for individual messages from a Watch trigger: ``` { "message": { "ts": {{ts}}, "text": {{text}}, "user": {{user}} }, "channel": {{channel}} } ``` ## Debugging All webhook calls are logged to `/logs/webhook.log`. Check this file if data isn't appearing: ```bash tail -f /home/runcloud/webapps/taskTracker/logs/webhook.log ``` ## Direct Test You can test the webhook with curl: ```bash curl -X POST https://tasks.lilassistance.com/webhook.php \ -H "Content-Type: application/json" \ -d '{ "message": { "ts": "1234567890.123456", "text": "Test message", "user": "U123456" }, "channel": "C123456" }' ```