ACLClouds
ACLClouds

How do I create my first n8n automation?

Build a manual workflow that prepares a message and then sends it to a Discord webhook. It explains the three building blocks of a workflow.

This guide was carried out on a temporary n8n instance in an ACLClouds test environment. It explains the three building blocks of a workflow: trigger, transformation and action.

Step-by-step procedure

  1. Create a workflow

    In the n8n interface, click the “Build a workflow” button, then name the workflow “My first ACLClouds automation”.

  2. Add the Manual Trigger node

    This node starts the workflow when you click the “Execute workflow” button. It is ideal for testing without an external trigger.

  3. Prepare the message

    Add the Edit Fields node, create the message field and enter some test text.

  4. Add the HTTP Request node

    Choose POST, paste your Discord webhook URL and send a JSON body containing {{$json.message}}.

  5. Test without publishing secrets

    Run the workflow. If Discord responds with 204, the message was sent. If a webhook URL appears in a screenshot, regenerate it immediately.

  6. Replace the trigger

    Once the test has passed, replace Manual Trigger with Schedule Trigger or Webhook depending on your use case, then publish the workflow.

JSON body of the HTTP Request node

{
  "content": "{{$json.message}}"
}

Before you start

You need an n8n instance opened over HTTPS and a Discord channel where you have the “Manage Webhooks” permission. In the channel settings, open “Integrations”, then “Webhooks”, create a webhook and copy its URL. This URL is enough to post in the channel: treat it like a password.

Check that everything works

After “Execute workflow”, each successful node shows a green check mark and the number of items it produced. The HTTP Request node output is almost empty: Discord answers 204 with no content. The message appears in the channel under the webhook name.

Once the workflow is published, the “Executions” tab lists each run with its status. Check it after the first real trigger.

Verified walkthrough

Creating the workflow and displaying it in the n8n editor were checked in a test environment.

Quick check

  • Workflow named
  • Test message defined
  • Webhook kept secret
  • Successful execution before publishing

Frequently asked questions

What does Cannot send an empty message mean?

Discord received an empty content field (code 50006). The expression {{$json.message}} finds nothing: the field has another name in Edit Fields, or that node is not connected to HTTP Request. Hover over the expression to see its value before running.

Why does Discord answer 401 or 404?

The webhook URL is incomplete, or the webhook was deleted or regenerated in Discord. Copy the whole URL again from the channel settings and paste it with no trailing space.

What should I do about 429 Too Many Requests?

Discord limits the number of messages per webhook. If the workflow sends a series of items, add a Wait node of a few seconds or group the text into a single message.

Why does the workflow not run at the planned time?

A Schedule Trigger only works on a published workflow. Also check the time zone: n8n follows GENERIC_TIMEZONE, set to Europe/Paris in the Compose file of the installation guide.