Creating a Basic Trigger-Action Workflow
Desliza para mostrar el menú
To create your first automated process in n8n, you need to build a workflow that starts with a trigger and then performs an action. Begin by opening the n8n editor and clicking the "+" button to add a new node. In the node selection dialog, type Webhook or Schedule to find trigger nodes. Select your preferred trigger to add it to the canvas.
Once the trigger node is on the canvas, configure its properties. For a Webhook trigger, n8n provides a unique URL that listens for incoming HTTP requests. You can copy this URL and use it to trigger your workflow from external apps. If you select a Schedule trigger, you can set it to run at specific times, such as every hour or once a day.
Below is a screenshot showing how to add and configure a trigger node:

After configuring your trigger, you are ready to connect it to an action node.
Use when you want your workflow to start from an external HTTP request, such as a form submission or a webhook from another service;
Ideal for automating tasks on a regular interval, like daily reports or hourly checks;
Starts the workflow when an email is received; great for automating responses or processing incoming messages;
Lets you run the workflow manually for testing or one-off actions;
Some integrations (like Slack or Google Sheets) provide their own triggers to start workflows based on events in those apps.
Now, add an action node to perform a task when your trigger fires. Click the "+" button again, then search for an action node such as Send Email or Post Message. For example, you might choose the Email node to send an email when the trigger is activated.
In a real-world scenario, imagine you want to receive an email every time someone submits a contact form on your website. You would use a Webhook trigger to listen for form submissions, then connect it to an Email node that sends you the message details.
Connect the trigger node to your action node by dragging from the trigger's output to the action's input. Configure the action node with the necessary details, such as the recipient's email address and the message content.
Your basic trigger-action workflow is now set up.
Tip: Always test your workflow with sample data before going live. This helps you catch any issues and ensures your automation works as expected.
workflow.json
¡Gracias por tus comentarios!
Pregunte a AI
Pregunte a AI
Pregunte lo que quiera o pruebe una de las preguntas sugeridas para comenzar nuestra charla