1. Home
  2. Third-Party
  3. n8n
  4. Receive Data from n8n within WordPress
  1. Home
  2. Third-Party
  3. Receive Data from n8n within WordPress

Receive Data from n8n within WordPress

This help file explains to you the basics of how to receive data from n8n. If you want to learn more about how to send data to n8n, take a look at this manual.

Receive Data within a Flows automation

If you are using the Flows feature of WP Webhooks, you can simply select the “n8n” integration from the integration dropdown of the trigger. This will generate a receivable URL, which you can use within the “Webhooks” app of n8n to send data to your WordPress website.
All of the sent data will then be available within the Flow itself.

Receive Data directly on an action URL

How to set up the n8n HTTP request

  1. To get started, please create a new Workflow within n8n.
  2. Once created, please set up the trigger of your choice and add an action.
  3. Within the newly added action, please search for “HTTP” and select the “HTTP Request” app.
  4. Once added, you’re prompted to add a URL, which is where you place your webhook action URL from the next step.
  5. Head back to WP Webhooks -> Receive Data -> Your chosen action -> Create action URL and create a new URL.
  6. Place this URL into the URL field of the “HTTP Request” action within n8n
  7. Select the “POST” request method
The n8n HTTP Request action
The HTTP Request action screen within n8n

Now we accomplished that our module talks directly with our chosen action.
Since, as of now, the connection wouldn’t do anything as we don’t send over any specific values.
To change that, we offer our so-called arguments. This is a list of various attributes that you can use to send data to your chosen action. You will find further details about all available actions within the “Receive Data” tab of WP Webhooks.

The n8n HTTP request action showing the body configuration
The HTTP request action with arguments inside of n8n.

In the screenshot above, you can see that we added two different arguments and their respective values of our choice. While those arguments differ for each available webhook action, you might want to use what you desire.
A full list of all arguments is available within the argument list of our plugin under WordPress dashboard -> Settings -> WP Webhooks -> Receive Data -> Webhook Actions

That’s it! After clicking ok, you successfully set up the WP Webhooks module for n8n.

In case you would like to see any specific feature, you can request it here.

Updated on April 4, 2022

Was this article helpful?

Related Articles