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

# Using Linkly AI in n8n

> Integrate your Linkly AI local knowledge base with the n8n workflow automation platform to build intelligent document processing automation workflows

## What You Can Do

<AccordionGroup>
  <Accordion title="Retrieve documents on a schedule and automatically push summaries">
    Set up a scheduled task to use Linkly AI's `search` tool every morning to
    retrieve relevant content from the knowledge base, generate summaries, and
    automatically push them to Slack or email — no manual sorting needed,
    knowledge flows automatically.
  </Accordion>

  <Accordion title="Automatically retrieve relevant materials when triggered externally">
    When a customer email or ticket arrives, automatically trigger Linkly AI's
    `search` tool to search for relevant technical materials in your local
    documents, generate a reply draft, and dramatically reduce time spent on
    manual searching and responding.
  </Accordion>

  <Accordion title="Embed local private knowledge in any automation workflow">
    Call Linkly AI's tools at any node in an n8n workflow, allowing automation
    tasks to retrieve needed private document content from your computer at any
    time — not just relying on the internet or fixed databases.
  </Accordion>
</AccordionGroup>

## Prerequisites

* [n8n](https://n8n.io) installed and running
* Linkly AI Desktop running with the MCP service active

## Configuration Steps

Choose the appropriate access mode based on where your n8n is deployed:

<Tabs>
  <Tab title="Same computer" icon="computer">
    When n8n and Linkly AI are running on the same computer, use the local address directly:

    Add an MCP tool node in n8n and configure:

    * URL: `http://127.0.0.1:60606/mcp`
    * No additional authentication required
  </Tab>

  <Tab title="LAN" icon="wifi">
    When n8n is running on another device on the LAN (such as a NAS or server):

    1. Enable "LAN Access" in Linkly AI Desktop
    2. Copy the LAN URL and access token
    3. Add an MCP tool node in n8n and configure:
       * URL: `http://192.168.x.x:60606/mcp` (use your actual LAN IP)
       * Header: `Authorization: Bearer <your access token>`
  </Tab>

  <Tab title="Cloud" icon="globe">
    When n8n is deployed in the cloud (such as n8n Cloud):

    1. Complete [remote access configuration](/docs/en/use-in-remote)
    2. Add an MCP tool node in n8n and configure:
       * URL: `https://mcp.linkly.ai/mcp`
       * Header: `Authorization: Bearer <your API Key>`
  </Tab>
</Tabs>

## Workflow Examples

Once configured, you can build various automation workflows in n8n, for example:

* Periodically search documents for specific content and send notifications
* Automatically search the knowledge base for relevant documents when receiving an email

## FAQ

<AccordionGroup>
  <Accordion title="n8n cannot connect to Linkly AI">
    Check based on your deployment method: - **Same computer**: Confirm that the
    Linkly AI MCP service is running - **LAN**: Confirm that LAN access is
    enabled and the access token is correct - **Cloud**: Confirm the tunnel is
    connected and the API Key is correct
  </Accordion>
</AccordionGroup>
