n8n

How to Automate Slack Lead Alerts from Discourse?

New community signups can turn into sales leads. This setup checks every new Discourse user, enriches the data with Clearbit, and alerts your Slack channel when someone matches your high value rules. Your team gets quick context and can act fast.

It starts with a webhook that receives the user from Discourse. A filter removes common personal email domains to save enrichment credits. Clearbit person lookup runs by email. If a record is found, the flow pulls company details using the employment domain, then applies a high value filter based on traits you choose. Only qualified users trigger a Slack message built with blocks for clear formatting. When no Clearbit match exists, the flow ends quietly using a no operation node.

Set the Discourse webhook to the n8n URL, add your Clearbit API key, and connect Slack to the right channel. Expect faster lead handoff and less noise, since only strong matches reach the team. Many teams spend 10 to 20 minutes per signup on research. This flow cuts that work to under a minute and keeps data consistent. You can adjust the filter node to match your ideal customer profile.

What are the key features?

  • Webhook trigger listens for new Discourse users in real time
  • Email domain filter removes common personal providers to reduce waste
  • Clearbit person enrichment uses the user email to fetch profile data
  • Company lookup pulls firm details from the employment domain
  • High value lead filter with editable rules to match your criteria
  • Slack channel message uses block formatting for clear, rich context
  • No operation branch safely ends runs when no Clearbit record is found

What are the benefits?

  • Reduce manual research from 20 minutes to 1 minute per signup
  • Cut noise by sending Slack alerts only for qualified users
  • Save enrichment credits by skipping personal email domains
  • Connect Discourse, Clearbit, and Slack without custom code
  • Improve data quality by pulling company and role from a single source

How do you set it up?

  1. Import the template into n8n: Create a new workflow in n8n > Click the three dots menu > Select 'Import from File' > Choose the downloaded JSON file.
  2. You'll need accounts with Discourse, Clearbit and Slack. See the Tools Required section above for links to create accounts with these services.
  3. In n8n, open the Webhook node. Copy the Test URL for testing and the Production URL for go live. Keep the HTTP method as POST.
  4. In your Discourse admin dashboard, create a new webhook and paste the n8n Webhook Production URL. Choose the user related event for new user created. Save and send a test delivery to confirm you receive a 200 response in n8n.
  5. Double click the Clearbit nodes. In the 'Credential to connect with' dropdown, click 'Create new credential', then follow the on screen instructions. For API Key, create a key in your Clearbit account and paste it into n8n.
  6. Open the Clearbit person node and confirm the email field maps to {{ $json.body.user.email }}. Keep the resource set to person.
  7. Open the Clearbit company node and confirm the domain maps to {{ $json.employment.domain }}. This pulls firm details linked to the person.
  8. Review the 'Filter out common personal emails' node. Add or remove domains to match your policy. This step saves credits and improves results.
  9. Adjust the 'Filter for high value leads' node. Set conditions like company size, job role, or industry to match your ideal customer profile.
  10. Double click the Slack node. In the credential dropdown, click 'Create new credential' and follow the on screen steps to authorize Slack. Select the target channel and review the block message text.
  11. Enable the workflow in n8n. Create a test account in Discourse with a business email to validate the full path. Confirm the Slack message posts only when the high value filter passes.
  12. If no alert appears, check execution logs in n8n. Look for a Clearbit 404 which means no match. Loosen the filter rules or try a known business email. Verify API keys and that the Discourse webhook points to the Production URL.

Tools Required

$24 / mo or $20 / mo billed annually to use n8n in the cloud. However, the local or self-hosted n8n Community Edition is free.

Clearbit

Sign up

Not available: Clearbit no longer offers new standalone API subscriptions; API keys are only available to accounts created in 2023 or earlier, and free tools were sunset on April 30, 2025

Discourse

Sign up

Self-hosted (open source): $0; lowest hosted plan with API/Webhooks: Pro $100 / mo

Slack

Sign up

Free plan: $0 / mo; limited to 10 apps (third-party or custom) and usable via Slack API

Similar Templates

Join Futurise to access 1,200+ automation templates

Get instant access to ready-made automation workflows for n8n, Make.com, AI agents, and more. Download, customise, and deploy in minutes.