🔓 Unlock all 10,000+ workflows & prompts free Join Newsletter →
✅ Full access unlocked — explore all 10,000 AI workflow and prompt templates Browse Templates →
Home n8n Workflow
January 22, 2026

Discourse + Slack: always share the final post link

Lisa Granqvist Partner Workflow Automation Expert

You publish a Discourse post, share the link in Slack, and then realize the URL you posted isn’t the one you actually want people to click. Maybe you edited the title, changed the first post, or grabbed the wrong tab. Now you’re cleaning up threads and re-posting.

This Discourse Slack link automation hits community managers first, because they’re the ones dropping announcements all day. But marketing leads and agency folks shipping client updates feel it too. One small mistake turns into a very public “oops.”

You’ll set up an n8n workflow that publishes a Discourse topic, applies the final revision, then retrieves the confirmed post details so the URL you share to Slack is the right one. Every time.

How This Automation Works

Here’s the complete workflow you’ll be setting up:

n8n Workflow Template: Discourse + Slack: always share the final post link

Why This Matters: Sharing the Wrong “Final” Link

Discourse posts are living documents. You publish, then you tweak formatting, fix a heading, add a missing resource, or adjust the title so it looks right in the forum feed. The problem is Slack is not forgiving. Once the link is in a channel, people click it, copy it, forward it, and the “wrong” version spreads fast. It’s not just annoying. It makes your team look sloppy, and it creates extra work you never planned for: follow-up messages, clarifications, and someone inevitably asking which link is correct.

It adds up fast. Here’s where it breaks down.

  • You end up posting two or three links in Slack because the first one wasn’t the finalized post.
  • Small edits turn into a coordination problem when multiple people share announcements from different browser tabs.
  • Manual copy-paste invites mistakes, especially when you’re publishing several topics in a row.
  • Team trust drops a notch when stakeholders can’t tell which URL is the “source of truth.”

What You’ll Build: Publish, Revise, Then Share the Confirmed Discourse URL

This workflow is built around a simple idea: don’t share anything until Discourse confirms what actually exists. In n8n, the automation starts by creating a new Discourse topic in the category you choose. Then it immediately updates that same post with your revised “final” content (the version you really want readers to see). After the update, it retrieves the post details from Discourse again, pulling back the canonical URL and key metadata. That retrieved data is the piece you can safely send to Slack, because it’s coming from Discourse itself, not from a human guessing which link is right.

The flow is publish first, revise second, confirm last. Once you have that confirmed link, you can pass it to Slack (or any other tool) knowing you’re not going to backtrack later. Frankly, this is one of those “tiny automations” that makes a team feel more professional overnight.

What You’re Building

Expected Results

Say you publish 5 Discourse topics a week and share each one in Slack. Manually, you might spend about 10 minutes per topic between publishing, revising, reloading, copying the right URL, and sanity-checking the link preview, so around 50 minutes weekly. With this workflow, you trigger the run, make your revision in the same automation, then the workflow retrieves the confirmed URL for sharing. You’ll usually spend a minute or two initiating the run, and the rest is just processing time.

Before You Start

  • n8n instance (try n8n Cloud free)
  • Self-hosting option if you prefer (Hostinger works well)
  • Discourse for publishing, editing, and retrieving topics
  • Slack to share the confirmed post URL
  • Discourse API key (generate it in your Discourse admin/user API settings)

Skill level: Beginner. You’ll connect credentials and map a few fields, but you do not need to write code.

Want someone to build this for you? Talk to an automation expert (free 15-minute consultation).

Step by Step

A manual run kicks things off. In the provided workflow, you start it with a manual trigger, which is perfect for testing and for teams that want a deliberate “publish now” button.

Discourse publishes the topic. The workflow creates a new post under the category you choose, using the content you pass into the Discourse “create” action.

The post gets revised immediately. Next, it updates that same topic with the final content, so your formatting, links, and wording are the version that sticks.

Discourse is queried for the confirmed details. The workflow retrieves the post it just created, pulling back the canonical URL and other fields you can reliably share downstream (like title or topic id).

You can easily modify the final “share” destination to send the URL to Slack, Twake, Mattermost, or even a Google Sheet log. See the full implementation guide below for customization options.

Step-by-Step Implementation Guide

Step 1: Configure the Manual Trigger

This workflow starts with a manual trigger so you can run it on demand while testing.

  1. Add the Manual Execution Start node to your canvas.
  2. Keep the default settings since this node has no parameters.
  3. Connect Manual Execution Start to Publish Forum Topic to start the execution flow.

Step 2: Connect Discourse

All Discourse actions in this workflow use the same API connection. Configure credentials once and apply them to each Discourse node.

  1. Open Publish Forum Topic and select your Discourse API connection.
  2. Credential Required: Connect your discourseApi credentials.
  3. Repeat the same credential selection for Revise Forum Post and Retrieve Forum Post.

Step 3: Set Up the Initial Post

Create the initial topic in Discourse before updating and retrieving it.

  1. In Publish Forum Topic, set Title to [Created] Discourse node.
  2. Set Content to Thank you for creating the Discourse node..
  3. Under Additional Fields, set Category to 4.
  4. Verify the connection flows from Publish Forum Topic to Revise Forum Post.

Step 4: Update and Retrieve the Post

Use the created post ID to update the post and then retrieve it for confirmation.

  1. In Revise Forum Post, set Operation to update.
  2. Set Post ID to ={{$json["id"]}} to use the ID from Publish Forum Topic.
  3. Set Content to Thank you for creating the Discourse node. We can now create, update and retrieve posts using n8n..
  4. In Retrieve Forum Post, set Operation to get and Post ID to ={{$json["id"]}}.
  5. Ensure the flow is Revise Forum PostRetrieve Forum Post as shown in the execution order.

⚠️ Common Pitfall: If the update or retrieval fails, verify that ={{$json["id"]}} is coming from the output of Publish Forum Topic and that the node connections are intact.

Step 5: Test and Activate Your Workflow

Run the workflow manually to confirm the topic is created, updated, and retrieved successfully.

  1. Click Execute Workflow to trigger Manual Execution Start.
  2. Confirm Publish Forum Topic creates a new post and returns an id in the output.
  3. Verify Revise Forum Post updates the post content using the same id.
  4. Check Retrieve Forum Post output to ensure the updated content is returned.
  5. When everything looks correct, switch the workflow to Active for production use.
🔒

Unlock Full Step-by-Step Guide

Get the complete implementation guide + downloadable template

Troubleshooting Tips

  • Discourse credentials can expire or need specific permissions. If things break, check your Discourse API key and username settings in n8n credentials first.
  • If you add Wait nodes (or you’re posting to a busy Discourse instance), processing times vary. Bump up the wait duration if your “retrieve post” step sometimes runs before the update is finished.
  • Default post templates are usually bland. Bake your announcement format into the “revise post” content early, or you will be polishing every post by hand.

Quick Answers

What’s the setup time for this Discourse Slack link automation?

About 30 minutes if your Discourse API access is ready.

Is coding required for this Discourse Slack link automation?

No. You’ll mainly connect Discourse and map the fields you want to publish and retrieve.

Is n8n free to use for this Discourse Slack link workflow?

Yes. n8n has a free self-hosted option and a free trial on n8n Cloud. Cloud plans start at $20/month for higher volume. You’ll also need to factor in Discourse hosting costs if you’re running your own forum.

Where can I host n8n to run this automation?

Two options: n8n Cloud (managed, easiest setup) or self-hosting on a VPS. For self-hosting, Hostinger VPS is affordable and handles n8n well. Self-hosting gives you unlimited executions but requires basic server management.

Can I modify this Discourse Slack link automation for different use cases?

Yes, and it’s the main reason this workflow is useful. You can keep the same “publish → revise → retrieve” pattern but swap the destination: post to Slack, send to Twake, notify Mattermost, or log the confirmed URL somewhere like Google Sheets. Common tweaks include changing the Discourse category, adjusting the revision template, and adding a second message that includes the title plus the final URL.

Why is my Discourse connection failing in this workflow?

Usually it’s expired or incorrect API credentials, so regenerate your Discourse API key and update the n8n credential. Also confirm the Discourse base URL is correct (including https) and that the user tied to the key can create and edit posts in the target category. If it fails only sometimes, you may be hitting rate limits or trying to retrieve the post before the update is fully saved.

What volume can this Discourse Slack link workflow process?

A lot for typical teams: dozens of topics a day is usually fine, as long as your Discourse instance is healthy.

Is this Discourse Slack link automation better than using Zapier or Make?

Often, yes, because this pattern benefits from chaining actions (create, then update, then retrieve) and passing the retrieved data forward cleanly. n8n also gives you more control over branching and data mapping when your post template evolves over time. If you self-host, you’re not paying per task, which matters once publishing becomes routine. Zapier or Make can still be fine if you’re doing a simple “send a message when something happens” flow, and you don’t care about the final URL confirmation step. Talk to an automation expert if you want help choosing.

Once this is running, the link you share is the link you meant to share. The workflow handles the repetitive checking so you can move on to the work that actually needs your attention.

Need Help Setting This Up?

Our automation experts can build and customize this workflow for your specific needs. Free 15-minute consultation—no commitment required.

Lisa Granqvist

Workflow Automation Expert

Expert in workflow automation and no-code tools.

×

Use template

Get instant access to this n8n workflow Json file

💬
Get a free quote today!
Get a free quote today!

Tell us what you need and we'll get back to you within one working day.

Get a free quote today!
Get a free quote today!

Tell us what you need and we'll get back to you within one working day.

Launch login modal Launch register modal