1. Access the n8n Dashboard: Log into your n8n instance. The dashboard provides an overview of active workflows, recent executions, and quick access to workflow creation.
2. Create a New Workflow: Click 'Workflows' in the left sidebar, then 'New Workflow' or the '+' icon. This opens the blank workflow editor canvas.
3. Add a Trigger Node: Search for 'Webhook' and drag it onto the canvas. This node will start your workflow when an external HTTP request is received. Alternatively, use a 'Cron' node for scheduled execution.
4. Configure the Trigger Node: Double-click the Webhook node. Set the 'Webhook URL' to 'POST' (or 'GET' for simple tests) and copy the generated URL. Keep the workflow active for testing.
5. Add a Basic Processing Node (e.g., Set): Search for 'Set' and drag it onto the canvas. Connect the Webhook node's output to the Set node's input. The Set node is used to add or modify data.
6. Configure the Set Node: Double-click the Set node. Click 'Add Value,' then 'Add Expression.' Enter {{ $json.body.message }} as the value and 'extractedMessage' as the property name. This extracts a 'message' field from the incoming webhook body.
7. Add an HTTP Request Node: Search for 'HTTP Request' and add it after the Set node. Connect them. This node allows your workflow to make requests to external APIs.
8. Configure the HTTP Request Node: Double-click. Set 'Method' to 'GET' and 'URL' to https://jsonplaceholder.typicode.com/todos/1. This fetches a sample ToDo item. You can later use expressions to make dynamic requests.
9. Add a Log Node for Debugging: Search for 'Log' and add it at the end of your workflow. Connect it to the HTTP Request node. This node helps inspect data at any point during execution.
10. Test the Workflow Manually (Webhook): Open a new browser tab or use a tool like Postman. Send a POST request to your copied Webhook URL with a JSON body like {"message": "Hello n8n!"}. Observe the workflow execution in n8n.
11. Review Execution Results: After testing, click the 'Executions' tab for your workflow. Inspect the data flowing through each node to verify correctness.
12. Save and Activate the Workflow: Click 'Save' in the top right. Then, toggle the 'Active' switch to 'On' to enable your workflow to run automatically based on its trigger.