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

# n8n

> Connect Strata with n8n in minutes and unlock powerful workflow automation

<img className="block dark:hidden" src="https://mintcdn.com/klavisai/P7T0h0Z2FSiCeN6f/images/knowledge-base/n8n/n8n.png?fit=max&auto=format&n=P7T0h0Z2FSiCeN6f&q=85&s=230ab071659f0aa41a6cfa697b478fa9" alt="n8n" width="1280" height="720" data-path="images/knowledge-base/n8n/n8n.png" />

<img className="hidden dark:block" src="https://mintcdn.com/klavisai/P7T0h0Z2FSiCeN6f/images/knowledge-base/n8n/n8n.png?fit=max&auto=format&n=P7T0h0Z2FSiCeN6f&q=85&s=230ab071659f0aa41a6cfa697b478fa9" alt="n8n" width="1280" height="720" data-path="images/knowledge-base/n8n/n8n.png" />

## Quick Setup Guide

<Steps>
  <Step title="Authorize MCP Servers to Use with Strata">
    Navigate to the [Klavis home page](https://www.klavis.ai/home) and click **"MCP Server"** in the left sidebar. You will see a list of MCP servers available in Klavis.

    <img src="https://mintcdn.com/klavisai/P7T0h0Z2FSiCeN6f/images/knowledge-base/n8n/step1.png?fit=max&auto=format&n=P7T0h0Z2FSiCeN6f&q=85&s=23108ce3b7f0001cc0052e32946160a5" alt="Klavis home page" width="1905" height="1072" data-path="images/knowledge-base/n8n/step1.png" />

    Click the **"Authorize"** button next to your chosen server. Once server is authorized, you will see **Green Checkmark** status.

    <img src="https://mintcdn.com/klavisai/P7T0h0Z2FSiCeN6f/images/knowledge-base/n8n/step2.png?fit=max&auto=format&n=P7T0h0Z2FSiCeN6f&q=85&s=92688307f399d9ea81022acc6daec83a" alt="Authorize MCP Servers" width="1900" height="1069" data-path="images/knowledge-base/n8n/step2.png" />

    <Tip>
      You can authorize one or more servers to use with Strata
    </Tip>
  </Step>

  <Step title="Get Strata Server URL">
    <img src="https://mintcdn.com/klavisai/P7T0h0Z2FSiCeN6f/images/knowledge-base/n8n/step3.png?fit=max&auto=format&n=P7T0h0Z2FSiCeN6f&q=85&s=83495f6f5abf474832f115ace894651c" alt="Klavis Dashboard consisting MCP Servers" width="1902" height="1070" data-path="images/knowledge-base/n8n/step3.png" />

    From Klavis Dashboard, click **"Add to Other Clients"** button to get your Strata Server URL.

    1. Navigate to **n8n**
    2. MCP URL with custom auth headers enabled: `https://strata.klavis.ai/mcp/` (Copy it)
    3. Click on **"Generate Token"** to get **Bearer Token** (Copy token & keep it secret!)

    <img src="https://mintcdn.com/klavisai/tuOXkSqjJP19kHh_/images/knowledge-base/n8n/step4.png?fit=max&auto=format&n=tuOXkSqjJP19kHh_&q=85&s=ddf030182d6263b32303545884685e22" alt="Copy Strata Server URL" width="1920" height="1080" data-path="images/knowledge-base/n8n/step4.png" />

    <Accordion title="🔐 OAuth Services (Most Common)">
      * Automatically redirected to OAuth authorization
      * Sign in to your account (GitHub, Google, Slack, etc.)
      * Grant necessary permissions
      * Redirected back to Klavis automatically
    </Accordion>

    <Accordion title="🔑 API Key Services">
      * Prompted to enter an API key
      * Follow service-specific instructions to generate key
      * Paste key in the provided field
      * Click **"Save"** to continue
    </Accordion>
  </Step>
</Steps>

## Build AI Workflow using Strata

<Steps>
  <Step title="Launch Your First n8n Workflow">
    Begin your automation by creating a **New Workflow** in your n8n personal workspace.

    <img src="https://mintcdn.com/klavisai/P7T0h0Z2FSiCeN6f/images/knowledge-base/n8n/step5.png?fit=max&auto=format&n=P7T0h0Z2FSiCeN6f&q=85&s=1ed924aa8f645b955c7b7ad5cbf3f450" alt="n8n workflow creation" width="1920" height="1080" data-path="images/knowledge-base/n8n/step5.png" />
  </Step>

  <Step title="Set Up Your Trigger Node">
    <img src="https://mintcdn.com/klavisai/P7T0h0Z2FSiCeN6f/images/knowledge-base/n8n/step6.png?fit=max&auto=format&n=P7T0h0Z2FSiCeN6f&q=85&s=8cbd4f053fa13d325a61daf59d962b54" alt="First Node in n8n" width="1920" height="1080" data-path="images/knowledge-base/n8n/step6.png" />

    Click the **Add First Step ('+' icon)** and select **Trigger Manually** to kickstart your workflow and you should see your first node being created.
  </Step>

  <Step title="Integrate Your AI Agent">
    <img src="https://mintcdn.com/klavisai/P7T0h0Z2FSiCeN6f/images/knowledge-base/n8n/step7.png?fit=max&auto=format&n=P7T0h0Z2FSiCeN6f&q=85&s=f43986fe04bd9a34115cb80cd96204f6" alt="Adding AI Agent Node in n8n" width="1920" height="1080" data-path="images/knowledge-base/n8n/step7.png" />

    1. Click **"+ (What happens next?)"**
    2. Navigate to **AI** → **AI Agents** from the menu
    3. Configure Your AI Agent:

    * **Source for Prompt**: choose "Connected Chat Trigger Node"
    * **Prompt**: `{{ $json.chatInput }}` (default setting)

    4. Click **Back to Canvas** to save the agent

    You should see **"When Chat Message Received"** and **"AI Agent"** nodes appear on the workflow diagram.

    <img src="https://mintcdn.com/klavisai/P7T0h0Z2FSiCeN6f/images/knowledge-base/n8n/step8.png?fit=max&auto=format&n=P7T0h0Z2FSiCeN6f&q=85&s=0dde339de86999b8ef65c971dce220cc" alt="Next Nodes appearing in n8n workflow" width="1920" height="1080" data-path="images/knowledge-base/n8n/step8.png" />
  </Step>

  <Step title="Add Chat Model to your AI Agent">
    <img src="https://mintcdn.com/klavisai/P7T0h0Z2FSiCeN6f/images/knowledge-base/n8n/step9.png?fit=max&auto=format&n=P7T0h0Z2FSiCeN6f&q=85&s=4764905527cfd12c69467e7e99442d3e" alt="Including Chat Model" width="1920" height="1080" data-path="images/knowledge-base/n8n/step9.png" />

    1. Click **"+ (Chat Model)"** -> **Anthropic Chat Model** (or your preferred model)
    2. Connect Chat Model to **n8n** using API Key
    3. Select **Model**: Claude Sonnet 4.5 (for example)
    4. Click **Back to Canvas** to lock in your chat model configuration

    Your **Chat Model** node now elegantly connects to your **AI Agent** node.

    <img src="https://mintcdn.com/klavisai/P7T0h0Z2FSiCeN6f/images/knowledge-base/n8n/step10.png?fit=max&auto=format&n=P7T0h0Z2FSiCeN6f&q=85&s=3d280df40360661598e6075815a80dd1" alt="n8n workflow now includes Chat Model" width="1920" height="1080" data-path="images/knowledge-base/n8n/step10.png" />
  </Step>

  <Step title="Connect Strata Server to your AI Agent">
    <img src="https://mintcdn.com/klavisai/tuOXkSqjJP19kHh_/images/knowledge-base/n8n/step11.png?fit=max&auto=format&n=tuOXkSqjJP19kHh_&q=85&s=e04a74b994f5aab6a52d66fafeb0b485" alt="MCP Client in n8n" width="1920" height="1080" data-path="images/knowledge-base/n8n/step11.png" />

    1. Click **"+ (Tool)"** -> **"MCP Client Tool"**
    2. Configure Your MCP Client:

    * Endpoint: Paste `https://strata.klavis.ai/mcp/`
    * Server Transport: **HTTP Streamable**
    * Authentication: **Bearer Auth**
    * Credentials for Bearer Auth: Paste **Bearer Token** that you copied earlier
    * Tools to Include: **All** (highly recommended for maximum capabilities)

    3. Click **Back to Canvas** to save your MCP Client
  </Step>

  <Step title="Connect Bearer Auth Account to n8n">
    <img src="https://mintcdn.com/klavisai/tuOXkSqjJP19kHh_/images/knowledge-base/n8n/step12.png?fit=max&auto=format&n=tuOXkSqjJP19kHh_&q=85&s=8128667f7669e9d947c7b2f7c388ef9a" alt="Bearer Auth connected to n8n workflow" width="1920" height="1080" data-path="images/knowledge-base/n8n/step12.png" />

    To connect your bearer account to n8n, simply paste **"Bearer Token"** that you copied from Klavis Dashboard.

    1. Navigate to **Connection** menu
    2. Bearer Token: Paste your **"Bearer Auth Token"**
    3. Allowed HTTP Request Domains: **All** (default settings)

    Now, AI workflow diagram has been completed and should look similar to screenshot below.

    <img src="https://mintcdn.com/klavisai/tuOXkSqjJP19kHh_/images/knowledge-base/n8n/step13.png?fit=max&auto=format&n=tuOXkSqjJP19kHh_&q=85&s=e13356efbb0f5817a6f6aaa85bf019c6" alt="Strata connected to n8n workflow" width="1920" height="1080" data-path="images/knowledge-base/n8n/step13.png" />
  </Step>

  <Step title="Start Using Strata Server in n8n workflow">
    Ready to test your workflow? Launch the chat interface in n8n by pressing **'C'** on your keyboard.

    <img src="https://mintcdn.com/klavisai/tuOXkSqjJP19kHh_/images/knowledge-base/n8n/step14.png?fit=max&auto=format&n=tuOXkSqjJP19kHh_&q=85&s=8c19d6e59a38a8f3ca54cc74bc3cc83e" alt="Using Chat in n8n" width="1920" height="1080" data-path="images/knowledge-base/n8n/step14.png" />

    <CodeGroup>
      ```text GitHub theme={null}
      "Create a new issue titled 'Add dark mode' with priority label"
      ```

      ```text Slack theme={null}
      "Send a message to #general: 'Standup meeting in 5 minutes!'"
      ```

      ```text Gmail theme={null}
      "Send email to john@company.com about project update"
      ```

      ```text Notion theme={null}
      "Create a new page called 'Meeting Notes' with today's date"
      ```
    </CodeGroup>

    Once your chat executes successfully, celebrate as **Green Checkmarks** appear across all nodes—including your Model and MCP Client!

    <img src="https://mintcdn.com/klavisai/tuOXkSqjJP19kHh_/images/knowledge-base/n8n/step15.png?fit=max&auto=format&n=tuOXkSqjJP19kHh_&q=85&s=54230f5f86eb0112f7108874b93c7a26" alt="Final n8n workflow after executing the chat" width="1920" height="1080" data-path="images/knowledge-base/n8n/step15.png" />
  </Step>

  <Step title="Happy Building! 🎉">
    You're all set! Your **Strata** MCP server is now integrated with n8n.
  </Step>
</Steps>

## Troubleshooting

<AccordionGroup>
  <Accordion title="🔧 Tools Not Appearing">
    * Double-check your Server URL for typos
    * Ensure stable internet connection
    * Verify authentication in Klavis dashboard
    * Check n8n logs for error messages
    * Try completely restarting n8n
  </Accordion>

  <Accordion title="🔐 Authentication Issues">
    * Re-authenticate in the Klavis dashboard
    * Check if your OAuth tokens have expired
    * Verify API key permissions (for API key services)
    * Ensure you've granted all necessary permissions
  </Accordion>

  <Accordion title="⚡ Performance Issues">
    * Limit the number of active MCP servers (or Use Strata)
    * Check your internet connection speed
    * Restart n8n periodically
    * Contact support if issues persist
  </Accordion>
</AccordionGroup>

## Need Help?

<CardGroup cols={2}>
  <Card title="Community" icon="discord">
    Join our Discord for community support and discussions
  </Card>

  <Card title="Support" icon="headphones">
    Contact our technical support team for assistance
  </Card>
</CardGroup>

***
