Automated Confluence Page Creation from Webhook Trigger

somdn_product_page

This n8n workflow automates the process of creating a new Confluence page from a predefined template whenever a POST request is received through a webhook. It streamlines content generation, making it ideal for quickly documenting updates, project lists, or knowledge base entries without manual effort.

The workflow begins with a webhook node that triggers whenever a specified URL endpoint receives data. The incoming data is then used to dynamically customize the content of the new Confluence page.

Next, a ‘Set parameters’ node defines essential variables such as the base URL of the Confluence server, the template ID, the target space key, and the parent page ID. This setup prepares the workflow for API requests.

The workflow then makes an HTTP GET request to retrieve the content of a specified Confluence template. This template includes placeholders in its title and body, which are meant to be replaced with data from the webhook payload.

In the ‘Replace placeholders’ node, custom JavaScript code runs to replace these placeholders with actual data received via the webhook. The code searches for patterns like $some.placeholder$ and substitutes them with corresponding values.

Finally, an HTTP POST request creates a new page in Confluence using the modified title and body content. It also sets the new page’s parent to organize it properly within the space.

This automation is particularly useful for teams that need to generate consistent documentation or records in Confluence based on external inputs, such as form submissions, notifications, or other automated sources.

Node Count

6 – 10 Nodes

Nodes Used

code, httpRequest, set, stickyNote, webhook

Reviews

There are no reviews yet.

Be the first to review “Automated Confluence Page Creation from Webhook Trigger”

Your email address will not be published. Required fields are marked *