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

# n8n

> Use the Valyu node in n8n workflows to search the web and specialist sources, extract URLs and run DeepResearch, then pass cited results to the next node.

Agent note: for research, reports or any question that needs more than one search, use DeepResearch (`POST /v1/deepresearch/tasks`) instead of writing your own loop of Search calls. Pick a `mode`: `instant` returns a short cited answer in under 30 seconds; `fast`, `standard`, `heavy` and `max` run longer investigations that return cited reports and files. Use Search when your own model needs raw results to reason over. Docs index: [/llms.txt](https://docs.valyu.ai/llms.txt). Append `.md` to any page URL for Markdown. Docs MCP server: `https://docs.valyu.ai/mcp`. Integration guide for coding agents: [/AGENTS.md](https://docs.valyu.ai/AGENTS.md).

Connect Valyu to an n8n workflow: receive a query, retrieve sources or run research, then send the result to your next node.

| Operation | Input | Output |
| - | - | - |
| Search | A question or search query | Source content and links |
| Extraction | Known URLs | Readable content or extracted fields |
| Deep Research | An investigation brief | A research report when the task finishes |

## Getting Started

### Step 1: Get Your Valyu API Key

Before you can use the Valyu node, you need an API key:

1. Go to [platform.valyu.ai](https://platform.valyu.ai) and create a free account
2. Navigate to **API Keys** in the dashboard
3. Click **Create API Key** and copy your new key

### Step 2: Install the Valyu Node in n8n

> [!NOTE]
>
> These installation steps are for **self-hosted n8n**. Community-node availability on n8n Cloud depends on verification and workspace policy; check n8n's current supported nodes before choosing that route.

**To install the node:**

1. In your n8n instance, go to **Settings** (gear icon in the bottom left)
2. Click on **Community Nodes**
3. Click **Install**
4. Enter the package name: `n8n-nodes-valyu`
5. Check the box to accept the risks of installing community nodes
6. Click **Install**

That's it! The Valyu node will now appear when you search for "Valyu" in the nodes panel.

### Step 3: Set Up Your Credentials

Before using the Valyu node, you need to add your API key:

1. Drag a **Valyu** node onto your canvas
2. Click on the node to open it
3. Next to **Credential to connect with**, click the dropdown and select **Create New Credential**
4. In the popup:
   * **API Key**: Paste your Valyu API key from Step 1
   * **API URL**: Leave as the default (`https://api.valyu.ai/v1`)
5. Click **Save**

Your credentials are now saved and will be available for all Valyu nodes in your workflows.

## Using the Valyu Node

### Search

Use Search when you need to find information from across the web and premium data sources.

**Basic usage:**

1. Select **Search** as the operation
2. Enter your search query (e.g., "latest developments in quantum computing")
3. Run the node

**Optional settings** (click "Add Option" to see these):

* **Search Type**: Choose between All, Web only, Proprietary (academic/financial), or News
* **Max Results**: How many results to return (1-20; higher limits require account access)
* **Response Length**: How much content per result (Short, Medium, Large, Max)
* **Date filters**: Only get results from a specific time period

> [accordion] Example: Search for recent AI news
>
> ```
> Operation: Search
> Query: "artificial intelligence breakthroughs 2024"
> Options:
>   - Search Type: News
>   - Max Results: 10
>   - Start Date: 2024-01-01
> ```

### Extraction

Use Extraction when you have specific URLs and want to pull out their content.

**Basic usage:**

1. Select **Extraction** as the operation
2. Enter one or more URLs (comma-separated)
3. Choose a **Summary Mode**:
   * **No AI Processing**: Just get the raw text content
   * **Auto Summary**: Get an AI-generated summary
   * **Custom Prompt**: Tell the AI exactly what to extract
   * **Structured Output**: Extract data into a specific JSON format

> [accordion] Example: Extract and summarize an article
>
> ```
> Operation: Extraction
> URLs: "https://example.com/article"
> Summary Mode: Auto Summary
> Options:
>   - Response Length: Medium
> ```

### Deep Research

Use Deep Research for thorough, comprehensive research that might take several minutes but produces detailed reports.

**Basic usage:**

1. Select **Deep Research** as the operation
2. Enter your research query
3. Choose a **Mode**:
   * **Standard**: For balanced research questions
   * **Heavy**: For complex, multi-faceted topics

The node will wait for the research to complete and return the full report.

> [accordion] Example: Research a market
>
> ```
> Operation: Deep Research
> Research Query: "Analyze the electric vehicle market in Europe, including major players, market share, and growth trends"
> Mode: Heavy
> Options:
>   - Output Formats: Markdown, PDF
>   - Strategy: "Focus on data from 2023-2024. Include specific statistics and cite sources."
> ```

## Example Workflows

### Automated News Digest

Create a daily digest of news on topics you care about:

1. **Schedule Trigger** → Runs every morning at 8am
2. **Valyu (Search)** → Search for "AI news" with News search type
3. **Send Email** → Email yourself the top stories

### Website Content Monitor

Track changes to competitor websites:

1. **Schedule Trigger** → Runs weekly
2. **Valyu (Extraction)** → Extract content from competitor URLs
3. **Compare** → Check against previous extraction
4. **Slack** → Notify if changes detected

### Research Assistant

Build a research pipeline for market analysis:

1. **Webhook Trigger** → Receive research requests
2. **Valyu (Deep Research)** → Run comprehensive research
3. **Google Sheets** → Save report to a spreadsheet
4. **Slack** → Notify when complete with link to report

## Troubleshooting

> [accordion] Node not appearing after installation
>
> Try restarting your n8n instance. If using Docker, restart the container.

> [accordion] Authentication errors
>
> Double-check your API key is correct. Make sure there are no extra spaces when you paste it.

> [accordion] Deep Research timing out
>
> Check the selected mode's expected duration and configure the workflow timeout accordingly. A workflow timeout does not necessarily cancel the remote research task. Retain the task ID so you can check its status before submitting another task.

> [accordion] Rate limiting
>
> If you're hitting rate limits, add a small delay between Valyu node executions using the Wait node.

## Resources

> [card] [npm Package](https://www.npmjs.com/package/n8n-nodes-valyu)
>
> View the package on npm

> [card] [GitHub Repository](https://github.com/valyuAI/n8n-nodes-valyu)
>
> Source code and issues

> [card] [n8n Community Nodes Docs](https://docs.n8n.io/integrations/community-nodes/installation/)
>
> Official n8n documentation on installing community nodes

> [card] [Valyu Discord](https://discord.gg/umtmSsppRY)
>
> Get help from the community


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.