> ## Documentation Index
> Fetch the complete documentation index at: https://help.messagesync.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# n8n Integration

> MessageSync n8n integration allows you to connect your WhatsApp messaging layer directly with . This enables advanced automation such as message-based triggers, outbound messaging, syncing conversations, and building custom logic that goes beyond standard CRM workflows.

With this integration, you can:

* Trigger workflows on inbound or outbound WhatsApp messages
* Send WhatsApp messages programmatically
* Build complex automation logic using n8n’s ecosystem
* Combine messaging with external tools, APIs, CRMs, and databases

***

## Prerequisites[​](#prerequisites "Direct link to Prerequisites")

Before getting started, ensure you have:

* An active account
* Access to **n8n** (self-hosted)
* Permission to create API keys in integration dashboard

***

## Step 1: Install the MessageSync Community Node in n8n[​](#step-1-install-the-messagesync-community-node-in-n8n "Direct link to Step 1: Install the MessageSync Community Node in n8n")

<Steps>
  <Step>
    Log in to your **n8n dashboard**
  </Step>

  <Step>
    Open **Settings**
  </Step>

  <Step>
    Navigate to **Community Nodes**
  </Step>

  <Step>
    Click **Install**
  </Step>

  <Step>
    Paste the following package name:

    ```text theme={null}
    n8n-nodes-message-sync-ai
    ```
  </Step>

  <Step>
    Complete the installation and restart n8n if prompted
  </Step>
</Steps>

<Frame>
  <img src="https://mintcdn.com/goghl-whitelable/d0UJrCwlyc8wzaxE/images/n8n-Integration/assets/images/n8n-step-1-364ab9368e018849a4a68c6a734f8663.gif?s=a9b59b7550bf9c5bb0ff825732da0d3c" alt="Install the MessageSync.ai Community Node in n8n" width="1920" height="977" data-path="images/n8n-Integration/assets/images/n8n-step-1-364ab9368e018849a4a68c6a734f8663.gif" />
</Frame>

Quickly add the MessageSync.ai Community Node to your n8n instance via the Community Nodes panel.

***

## Step 2: Create Credentials in n8n[​](#step-2-create-credentials-in-n8n "Direct link to Step 2: Create Credentials in n8n")

Once the package is installed, you need to configure credentials.

<Steps>
  <Step>
    Go to **Credentials** in n8n
  </Step>

  <Step>
    Click on **MessageSync.ai** or Add Credential and search for MessageSync.ai
  </Step>

  <Step>
    Open the **MessageSync.ai Account** credential
  </Step>
</Steps>

<Frame>
  <img src="https://mintcdn.com/goghl-whitelable/d0UJrCwlyc8wzaxE/images/n8n-Integration/assets/images/n8n-step-2-ccd537203662cf02dcb570baca9a200a.gif?s=8c24bfec89ffef5e6efe7c88bb0126b1" alt="Install the MessageSync.ai Community Node in n8n" width="1920" height="977" data-path="images/n8n-Integration/assets/images/n8n-step-2-ccd537203662cf02dcb570baca9a200a.gif" />
</Frame>

Open the MessageSync.ai credential panel in n8n to begin setup.

***

## Step 3: Generate API Key from the instance setting[​](#step-3-generate-api-key-from-the-instance-setting "Direct link to Step 3: Generate API Key from the instance setting")

Now you’ll generate the API key required for n8n.

<Steps>
  <Step>
    Go to **Settings**
  </Step>

  <Step>
    Scroll down to **API Keys** Section
  </Step>

  <Step>
    Create a new **API Key** for n8n
  </Step>

  <Step>
    Copy:

    * **API Key**
    * **Sub-account ID**
  </Step>
</Steps>

<Frame>
  <img src="https://mintcdn.com/goghl-whitelable/d0UJrCwlyc8wzaxE/images/n8n-Integration/assets/images/n8n-step-3-c104262b73148474d45be21f47352a6b.gif?s=49c2409dba0bbeedc6c9525e866f6975" alt="Install the MessageSync.ai Community Node in n8n" width="1920" height="977" data-path="images/n8n-Integration/assets/images/n8n-step-3-c104262b73148474d45be21f47352a6b.gif" />
</Frame>

Open your dashboard and copy the API Key and Sub-account ID in MessageSync.ai credential panel from n8n's dashboard.

***

## Step 4: Configure Credentials in n8n[​](#step-4-configure-credentials-in-n8n "Direct link to Step 4: Configure Credentials in n8n")

<Steps>
  <Step>
    Return to the **MessageSync.ai credential** in n8n
  </Step>

  <Step>
    Paste:

    * API Key
    * Sub-account ID
  </Step>

  <Step>
    Save the credential
  </Step>
</Steps>

<Frame>
  <img src="https://mintcdn.com/goghl-whitelable/d0UJrCwlyc8wzaxE/images/n8n-Integration/assets/images/n8n-step-4-b84fc8d879814d9f427b00172c4fa1e0.png?fit=max&auto=format&n=d0UJrCwlyc8wzaxE&q=85&s=d398eda582f843d548e4e4d9d6ab5ded" alt="Install the MessageSync.ai Community Node in n8n" width="3456" height="1758" data-path="images/n8n-Integration/assets/images/n8n-step-4-b84fc8d879814d9f427b00172c4fa1e0.png" />
</Frame>

Paste your API Key and Sub-account ID into the MessageSync.ai credential panel in n8n and save to complete integration.

Once saved, your account is now securely connected to n8n.

***

## Step 5: Create Your First Workflow[​](#step-5-create-your-first-workflow "Direct link to Step 5: Create Your First Workflow")

<Steps>
  <Step>
    Go to **Workflows**
  </Step>

  <Step>
    Click **Create Workflow**
  </Step>

  <Step>
    Click **Add Node**
  </Step>

  <Step>
    Search for **MessageSync**
  </Step>
</Steps>

<Frame>
  <img src="https://mintcdn.com/goghl-whitelable/d0UJrCwlyc8wzaxE/images/n8n-Integration/assets/images/n8n-workflow-setup-557209ebf9f5e44db158eb2141cf4ca7.png?fit=max&auto=format&n=d0UJrCwlyc8wzaxE&q=85&s=2eaca868f74cc691813d14a2b262f8bf" alt="Install the MessageSync.ai Community Node in n8n" width="3456" height="1758" data-path="images/n8n-Integration/assets/images/n8n-workflow-setup-557209ebf9f5e44db158eb2141cf4ca7.png" />
</Frame>

***

## Available Triggers[​](#available-triggers "Direct link to Available Triggers")

You can start workflows using the following triggers:

### Inbound Message Trigger[​](#inbound-message-trigger "Direct link to Inbound Message Trigger")

Triggers when a WhatsApp message is received.

Use cases:

* Auto-replies
* Lead qualification
* Webhook forwarding
* CRM updates

### Outbound Message Trigger[​](#outbound-message-trigger "Direct link to Outbound Message Trigger")

Triggers when a WhatsApp message is sent.

Use cases:

* Logging messages
* Analytics
* Syncing to external systems

<Frame>
  <img src="https://mintcdn.com/goghl-whitelable/d0UJrCwlyc8wzaxE/images/n8n-Integration/assets/images/n8n-available-triggers-2aa1dbf105f0fe171d3b654ed8a09016.gif?s=a691d0112ed0bec6f7081bc2ff6cc857" alt="Install the MessageSync.ai Community Node in n8n" width="1920" height="977" data-path="images/n8n-Integration/assets/images/n8n-available-triggers-2aa1dbf105f0fe171d3b654ed8a09016.gif" />
</Frame>

Example Triggers: Set up automation that starts when you receive or send a WhatsApp message using the MessageSync.ai node in n8n.

***

## Sending a Message Using n8n[​](#sending-a-message-using-n8n "Direct link to Sending a Message Using n8n")

You can also send WhatsApp messages directly from n8n.

<Steps>
  <Step>
    Add a **MessageSync → Send Message** node
  </Step>

  <Step>
    Select your configured credentials
  </Step>

  <Step>
    Provide required fields:

    * Contact ID (from CRM) or Phone Number
    * Message content
  </Step>
</Steps>

<Frame>
  <img src="https://mintcdn.com/goghl-whitelable/d0UJrCwlyc8wzaxE/images/n8n-Integration/assets/images/n8n-sending-message-11a51f246405bd845bfc036872250138.gif?s=9821e481f47a744b471516c80b8e0d12" alt="Install the MessageSync.ai Community Node in n8n" width="1920" height="977" data-path="images/n8n-Integration/assets/images/n8n-sending-message-11a51f246405bd845bfc036872250138.gif" />
</Frame>

Send a WhatsApp message by setting contact ID (or Phone Number) and message in the MessageSync.ai node.

### Example: Send Message Using CRM Contact ID[​](#example-send-message-using-crm-contact-id "Direct link to Example: Send Message Using CRM Contact ID")

This allows you to:

* Send messages to existing contacts
* Trigger WhatsApp messages from any n8n logic
* Combine with webhooks, forms, or databases

***

## Best Practices[​](#best-practices "Direct link to Best Practices")

* Use inbound triggers for event-driven automations
* Keep API keys scoped to specific sub-accounts
* Log workflows during testing to avoid duplicate sends
* Combine n8n logic with drip and rate-limiting features

***

## Troubleshooting[​](#troubleshooting "Direct link to Troubleshooting")

**Node not visible after install**

* Restart n8n
* Ensure community nodes are enabled

**Authentication error**

* Re-check API key and sub-account ID
* Ensure the key is active in dashboard

**Messages not sending**

* Confirm the contact exists in CRM
* Validate the WhatsApp number is connected

***

## Support[​](#support "Direct link to Support")

If you need help setting this up or building workflows:

* Reach out via **WhatsApp Chat**
* Contact [**support@messagesync.ai**](mailto:support@messagesync.ai)

We’re happy to help you design workflows or debug configurations.

***

## FAQ[​](#faq "Direct link to FAQ")

<AccordionGroup>
  <Accordion title="Can I use this with multiple sub-accounts?">
    Yes. Each sub-account requires its own API key and credential.
  </Accordion>

  <Accordion title="Does this replace CRM workflows?">
    No. n8n complements CRM workflows and enables advanced automation.
  </Accordion>
</AccordionGroup>

***

You’re now ready to build powerful WhatsApp automations using **MessageSync + n8n**.
