This workflow automates task creation in Todoist via webhook requests. Key nodes include Task Webhook (receives requests), Validate Input (sanitizes task data), Check Validation (ensures valid input), Rate Limit Check (monitors usage), Create Todoist Task (Todoist API interaction), Log Task Attempt (records activity), Check Task Success (validates response), Format Response (structures output), Send Response (returns results), Validation Error Response (handles invalid inputs), and Task Error Response (manages API errors). It uses the Todoist API.\n\nSetup Requirements: Install n8n from n8n.io or sign up at cloud.n8n.io. Import the JSON into n8n’s workflow editor. Create a Todoist account at todoist.com and get an API token (Settings > Integrations > API token). In n8n, configure Todoist credentials (API Token). Set up Task Webhook with path create-task and header authentication (e.g., Bearer YOUR_TOKEN). Configure your app to send POST requests with task or content, and optional description, priority (1-4), labels (array), dueDate, and projectId. Handle errors like missing task content (400: Invalid input data) or invalid API token (500: Task creation failed). Set header auth in n8n (Credentials > HTTP Header Auth).\n\nTesting and Deployment: Import the JSON into n8n. Send a POST request to the webhook URL with JSON: {"task": "Buy groceries", "description": "Milk, eggs", "priority": 2, "labels": ["urgent"], "dueDate": "2025-07-24"} and a valid auth header. Verify Validate Input processes inputs and Check Validation passes. Confirm Create Todoist Task creates the task and Format Response returns status 200 with task.id and url. Test with empty task content ({"task": ""}) to trigger Validation Error Response (400: Task content required). Use an invalid API token to trigger Task Error Response (500: Failed to create task). Monitor logs for rate limits (429: Too Many Requests). If task creation fails, verify the Todoist API token and project ID. Activate the workflow in n8n and ensure the webhook is live. Deploy for automated task creation with error handling and response validation.
$5.49
Workflow steps: 11
Integrated apps: webhook, set, if