Back to Integrations
integrationMattermost node
integrationTrello node

Mattermost and Trello integration

Save yourself the work of writing custom integrations for Mattermost and Trello and use n8n instead. Build adaptable and scalable Communication, and Productivity workflows that work with your technology stack. All within a building experience you will love.

How to connect Mattermost and Trello

  • Step 1: Create a new workflow
  • Step 2: Add and configure nodes
  • Step 3: Connect
  • Step 4: Customize and extend your integration
  • Step 5: Test and activate your workflow

Step 1: Create a new workflow and add the first step

In n8n, click the "Add workflow" button in the Workflows tab to create a new workflow. Add the starting point – a trigger on when your workflow should run: an app event, a schedule, a webhook call, another workflow, an AI chat, or a manual trigger. Sometimes, the HTTP Request node might already serve as your starting point.

Mattermost and Trello integration: Create a new workflow and add the first step

Step 2: Add and configure Mattermost and Trello nodes

You can find Mattermost and Trello in the nodes panel. Drag them onto your workflow canvas, selecting their actions. Click each node, choose a credential, and authenticate to grant n8n access. Configure Mattermost and Trello nodes one by one: input data on the left, parameters in the middle, and output data on the right.

Mattermost and Trello integration: Add and configure Mattermost and Trello nodes

Step 3: Connect Mattermost and Trello

A connection establishes a link between Mattermost and Trello (or vice versa) to route data through the workflow. Data flows from the output of one node to the input of another. You can have single or multiple connections for each node.

Mattermost and Trello integration: Connect Mattermost and Trello

Step 4: Customize and extend your Mattermost and Trello integration

Use n8n's core nodes such as If, Split Out, Merge, and others to transform and manipulate data. Write custom JavaScript or Python in the Code node and run it as a step in your workflow. Connect Mattermost and Trello with any of n8n’s 1000+ integrations, and incorporate advanced AI logic into your workflows.

Mattermost and Trello integration: Customize and extend your Mattermost and Trello integration

Step 5: Test and activate your Mattermost and Trello workflow

Save and run the workflow to see if everything works as expected. Based on your configuration, data should flow from Mattermost to Trello or vice versa. Easily debug your workflow: you can check past executions to isolate and fix the mistake. Once you've tested everything, make sure to save your workflow and activate it.

Mattermost and Trello integration: Test and activate your Mattermost and Trello workflow

Score and route leads with Clearbit, Mattermost and Trello

Lead Scoring Pipeline with Mattermost and Trello

This workflow automatically enriches incoming form-based leads, calculates a lead-score from multiple data points, and then routes high-value prospects to a Mattermost alert channel while adding all leads to Trello for further handling. It centralizes lead intelligence and streamlines sales team triage—no manual spreadsheet work required.

Pre-conditions/Requirements

Prerequisites
n8n instance (self-hosted or n8n cloud)
ScrapeGraphAI community node installed
Active Trello and Mattermost workspaces
Lead-capture form or webhook that delivers JSON payloads

Required Credentials
Trello API Key & Token** – Access to the board/list where cards will be created
Mattermost Access Token** – Permission to post messages in the target channel
(Optional) Clearbit / Apollo / 3rd-party enrichment keys** – If you replace the sample enrichment HTTP requests

Specific Setup Requirements

Variable Purpose Example Value
MM_CHANNEL_ID Mattermost channel to post high-score leads leads-alerts
TRELLO_BOARD_ID Board where new cards are added 62f1d…
TRELLO_LIST_ID_HOT Trello list for hot leads Hot Deals
TRELLO_LIST_ID_BACKLOG Trello list for all other leads New Leads
LEAD_SCORE_THRESHOLD Score above which a lead is considered hot 70

How it works

This workflow grabs new leads at a defined interval, enriches each lead with external data, computes a custom score, and routes the lead: high-scorers trigger a Mattermost alert and are placed in a “Hot Deals” list, while the rest are stored in a “Backlog” list on Trello. All actions are fully automated and run unattended once configured.

Key Steps:
Schedule Trigger**: Runs every 15 minutes to poll for new form submissions.
HTTP Request – Fetch Leads**: Retrieves the latest unprocessed leads from your form backend or CRM API.
Split In Batches**: Processes leads 20 at a time to respect API rate limits.
HTTP Request – Enrich Lead**: Calls external enrichment (e.g., Clearbit) to append company and person data.
Code – Calculate Score**: JavaScript that applies weightings to enriched attributes and outputs a numeric score.
IF – Score Threshold**: Branches flow based on LEAD_SCORE_THRESHOLD.
Mattermost Node**: Sends a rich-text message with lead details for high-score prospects.
Trello Node (Hot List): Creates a Trello card in the “Hot Deals” list for high-value leads.
Trello Node (Backlog)
: Creates a Trello card in the “New Leads” list for everyone else.
Merge & Flag Processed**: Marks leads as processed to avoid re-processing in future runs.

Set up steps

Setup Time: 10–15 minutes

Import the Workflow: Download the JSON template and import it into n8n.
Create / Select Credentials:
Add your Trello API key & token under Trello API credentials.
Add your Mattermost personal access token under Mattermost API credentials.
Configure Environment Variables: Set MM_CHANNEL_ID, TRELLO_BOARD_ID, TRELLO_LIST_ID_HOT, TRELLO_LIST_ID_BACKLOG, and LEAD_SCORE_THRESHOLD in n8n → Settings → Environment.
Form Backend Endpoint: Update the first HTTP Request node with the correct URL and authentication for your form or CRM.
(Optional) Enrichment Provider: Replace the sample enrichment HTTP Request with your chosen provider’s endpoint and credentials.
Test Run: Execute the workflow manually with a sample payload to ensure Trello cards and Mattermost messages are produced.
Activate: Enable the workflow; it will now run on the defined schedule.

Node Descriptions

Core Workflow Nodes:
Schedule Trigger** – Triggers workflow every 15 minutes.
HTTP Request (Fetch Leads)** – Pulls unprocessed leads.
SplitInBatches** – Limits processing to 20 leads per batch.
HTTP Request (Enrich Lead)** – Adds firmographic & technographic data.
Code (Calculate Score)** – JavaScript scoring algorithm; outputs score field.
IF (Score ≥ Threshold)** – Determines routing path.
Mattermost** – Sends formatted message with lead summary & score.
Trello (Create Card)** – Adds lead as a card to the appropriate list.
Merge (Flag Processed)** – Updates source system to mark lead as processed.

Data Flow:
Schedule Trigger → HTTP Request (Fetch Leads) → SplitInBatches
→ HTTP Request (Enrich Lead) → Code (Calculate Score) → IF
IF (Yes) → Mattermost → Trello (Hot List)
IF (No) → Trello (Backlog)
Both branches → Merge (Flag Processed)

Customization Examples

Adjust Scoring Weights
// Code node: adjust weights to change scoring logic
const weights = {
industry: 15,
companySize: 25,
jobTitle: 20,
intentSignals: 40
};

Dynamic Trello List Mapping
// Use a Lookup table instead of IF node
const mapping = {
hot: 'TRELLO_LIST_ID_HOT',
cold: 'TRELLO_LIST_ID_BACKLOG'
};
items[0].json.listId = mapping[items[0].json.segment];
return items;

Data Output Format

The workflow outputs structured JSON data:

{
"leadId": "12345",
"email": "[email protected]",
"score": 82,
"priority": "hot",
"trelloCardUrl": "https://trello.com/c/abc123",
"mattermostPostId": "78yzk9n8ppgkkp"
}

Troubleshooting

Common Issues
Trello authentication fails – Ensure the token has write access and that the API key & token pair belong to the same Trello account.
Mattermost message not sent – Confirm the token can post in the target channel and that MM_CHANNEL_ID is correct.

Performance Tips
Batch leads in groups of 20–50 to avoid enrichment API rate-limit errors.
Cache enrichment responses for repeat domains to reduce API calls.

Pro Tips:
Add a second IF node to send ultra-high (>90) scores directly to an account executive via email.
Store raw enrichment responses in a database for future analytics.
Use n8n’s built-in Execution Data Save to debug edge-cases without rerunning external API calls.

Nodes used in this workflow

Popular Mattermost and Trello workflows

Score and route leads with Clearbit, Mattermost and Trello

Lead Scoring Pipeline with Mattermost and Trello This workflow automatically enriches incoming form-based leads, calculates a lead-score from multiple data points, and then routes high-value prospects to a Mattermost alert channel while adding all leads to Trello for further handling. It centralizes lead intelligence and streamlines sales team triage—no manual spreadsheet work required. Pre-conditions/Requirements Prerequisites n8n instance (self-hosted or n8n cloud) ScrapeGraphAI community node installed Active Trello and Mattermost workspaces Lead-capture form or webhook that delivers JSON payloads Required Credentials Trello API Key & Token** – Access to the board/list where cards will be created Mattermost Access Token** – Permission to post messages in the target channel (Optional) Clearbit / Apollo / 3rd-party enrichment keys** – If you replace the sample enrichment HTTP requests Specific Setup Requirements | Variable | Purpose | Example Value | |-------------------------|-------------------------------------------|------------------------| | MM_CHANNEL_ID | Mattermost channel to post high-score leads | leads-alerts | | TRELLO_BOARD_ID | Board where new cards are added | 62f1d… | | TRELLO_LIST_ID_HOT | Trello list for hot leads | Hot Deals | | TRELLO_LIST_ID_BACKLOG| Trello list for all other leads | New Leads | | LEAD_SCORE_THRESHOLD | Score above which a lead is considered hot| 70 | How it works This workflow grabs new leads at a defined interval, enriches each lead with external data, computes a custom score, and routes the lead: high-scorers trigger a Mattermost alert and are placed in a “Hot Deals” list, while the rest are stored in a “Backlog” list on Trello. All actions are fully automated and run unattended once configured. Key Steps: Schedule Trigger**: Runs every 15 minutes to poll for new form submissions. HTTP Request – Fetch Leads**: Retrieves the latest unprocessed leads from your form backend or CRM API. Split In Batches**: Processes leads 20 at a time to respect API rate limits. HTTP Request – Enrich Lead**: Calls external enrichment (e.g., Clearbit) to append company and person data. Code – Calculate Score**: JavaScript that applies weightings to enriched attributes and outputs a numeric score. IF – Score Threshold**: Branches flow based on LEAD_SCORE_THRESHOLD. Mattermost Node**: Sends a rich-text message with lead details for high-score prospects. Trello Node (Hot List)**: Creates a Trello card in the “Hot Deals” list for high-value leads. Trello Node (Backlog)**: Creates a Trello card in the “New Leads” list for everyone else. Merge & Flag Processed**: Marks leads as processed to avoid re-processing in future runs. Set up steps Setup Time: 10–15 minutes Import the Workflow: Download the JSON template and import it into n8n. Create / Select Credentials: Add your Trello API key & token under Trello API credentials. Add your Mattermost personal access token under Mattermost API credentials. Configure Environment Variables: Set MM_CHANNEL_ID, TRELLO_BOARD_ID, TRELLO_LIST_ID_HOT, TRELLO_LIST_ID_BACKLOG, and LEAD_SCORE_THRESHOLD in n8n → Settings → Environment. Form Backend Endpoint: Update the first HTTP Request node with the correct URL and authentication for your form or CRM. (Optional) Enrichment Provider: Replace the sample enrichment HTTP Request with your chosen provider’s endpoint and credentials. Test Run: Execute the workflow manually with a sample payload to ensure Trello cards and Mattermost messages are produced. Activate: Enable the workflow; it will now run on the defined schedule. Node Descriptions Core Workflow Nodes: Schedule Trigger** – Triggers workflow every 15 minutes. HTTP Request (Fetch Leads)** – Pulls unprocessed leads. SplitInBatches** – Limits processing to 20 leads per batch. HTTP Request (Enrich Lead)** – Adds firmographic & technographic data. Code (Calculate Score)** – JavaScript scoring algorithm; outputs score field. IF (Score ≥ Threshold)** – Determines routing path. Mattermost** – Sends formatted message with lead summary & score. Trello (Create Card)** – Adds lead as a card to the appropriate list. Merge (Flag Processed)** – Updates source system to mark lead as processed. Data Flow: Schedule Trigger → HTTP Request (Fetch Leads) → SplitInBatches → HTTP Request (Enrich Lead) → Code (Calculate Score) → IF IF (Yes) → Mattermost → Trello (Hot List) IF (No) → Trello (Backlog) Both branches → Merge (Flag Processed) Customization Examples Adjust Scoring Weights // Code node: adjust weights to change scoring logic const weights = { industry: 15, companySize: 25, jobTitle: 20, intentSignals: 40 }; Dynamic Trello List Mapping // Use a Lookup table instead of IF node const mapping = { hot: 'TRELLO_LIST_ID_HOT', cold: 'TRELLO_LIST_ID_BACKLOG' }; items[0].json.listId = mapping[items[0].json.segment]; return items; Data Output Format The workflow outputs structured JSON data: { "leadId": "12345", "email": "[email protected]", "score": 82, "priority": "hot", "trelloCardUrl": "https://trello.com/c/abc123", "mattermostPostId": "78yzk9n8ppgkkp" } Troubleshooting Common Issues Trello authentication fails – Ensure the token has write access and that the API key & token pair belong to the same Trello account. Mattermost message not sent – Confirm the token can post in the target channel and that MM_CHANNEL_ID is correct. Performance Tips Batch leads in groups of 20–50 to avoid enrichment API rate-limit errors. Cache enrichment responses for repeat domains to reduce API calls. Pro Tips: Add a second IF node to send ultra-high (>90) scores directly to an account executive via email. Store raw enrichment responses in a database for future analytics. Use n8n’s built-in Execution Data Save to debug edge-cases without rerunning external API calls.

Build your own Mattermost and Trello integration

Create custom Mattermost and Trello workflows by choosing triggers and actions. Nodes come with global operations and settings, as well as app-specific parameters that can be configured. You can also use the HTTP Request node to query data from any app or service with a REST API.

Mattermost supported actions

Add User
Add a user to a channel
Create
Create a new channel
Delete
Soft delete a channel
Member
Get a page of members for a channel
Restore
Restores a soft deleted channel
Search
Search for a channel
Statistics
Get statistics for a channel
Delete
Soft delete a post, by marking the post as deleted in the database
Post
Post a message into a channel
Post Ephemeral
Post an ephemeral message into a channel
Create
Add a reaction to a post
Delete
Remove a reaction from a post
Get Many
Get many reactions to one or more posts
Create
Create a new user
Deactive
Deactivates the user and revokes all its sessions by archiving its user object
Get By Email
Get a user by email
Get By ID
Get a user by ID
Get Many
Retrieve many users
Invite
Invite user to team

Trello supported actions

Create
Create a new attachment for a card
Delete
Delete an attachment
Get
Get the data of an attachment
Get Many
Returns many attachments for the card
Create
Create a new board
Delete
Delete a board
Get
Get the data of a board
Update
Update a board
Add
Add member to board using member ID
Get Many
Get many members of a board
Invite
Invite a new member to a board via email
Remove
Remove member from board using member ID
Create
Create a new card
Delete
Delete a card
Get
Get the data of a card
Update
Update a card
Create
Create a comment on a card
Delete
Delete a comment from a card
Update
Update a comment on a card
Create
Create a new checklist
Create Checklist Item
Create a checklist item
Delete
Delete a checklist
Delete Checklist Item
Delete a checklist item
Get
Get the data of a checklist
Get Checklist Items
Get a specific checklist on a card
Get Completed Checklist Items
Get the completed checklist items on a card
Get Many
Returns many checklists for the card
Update Checklist Item
Update an item in a checklist on a card
Add to Card
Add a label to a card
Create
Create a new label
Delete
Delete a label
Get
Get the data of a label
Get Many
Returns many labels for the board
Remove From Card
Remove a label from a card
Update
Update a label
Archive
Archive/Unarchive a list
Create
Create a new list
Get
Get the data of a list
Get Cards
Get all the cards in a list
Get Many
Get many lists
Update
Update a list

FAQs

  • Can Mattermost connect with Trello?

  • Can I use Mattermost’s API with n8n?

  • Can I use Trello’s API with n8n?

  • Is n8n secure for integrating Mattermost and Trello?

  • How to get started with Mattermost and Trello integration in n8n.io?

Looking to integrate Mattermost and Trello in your company?

Over 3000 companies switch to n8n every single week

Why use n8n to integrate Mattermost with Trello

Build complex workflows, really fast

Build complex workflows, really fast

Handle branching, merging and iteration easily.
Pause your workflow to wait for external events.

Code when you need it, UI when you don't

Simple debugging

Your data is displayed alongside your settings, making edge cases easy to track down.

Use templates to get started fast

Use 1000+ workflow templates available from our core team and our community.

Reuse your work

Copy and paste, easily import and export workflows.

Implement complex processes faster with n8n

red iconyellow iconred iconyellow icon