FM
FlowMarket
AI Agents Advanced ⚡ 18 n8n Nodes

Allow your AI to call an API to fetch data

Use n8n to bring data from any API to your AI. This workflow uses the Chat Trigger to provide the chat interface, and the Custom n8n Workflow Tool to call a ...

🔌 Nodes & Integrations Used (8)

Chat Trigger Lm Chat Open Ai Memory Buffer Window Execute Workflow Trigger Information Extractor HTTP Request Tool Workflow Agent

📖 Implementation & Setup Guide

Use n8n to bring data from any API to your AI. This workflow uses the [Chat Trigger](https://docs.n8n.io/integrations/builtin/core-nodes/n8n-nodes-langchain.chattrigger/) to provide the chat interface, and the [Custom n8n Workflow Tool](https://docs.n8n.io/integrations/builtin/cluster-nodes/sub-nodes/n8n-nodes-langchain.toolworkflow/) to call a second workflow that calls the API.

The second workflow uses AI functionality to refine the API request based on the user's query. It then makes an API call, and returns the response to the main workflow.

This workflow is used in [Advanced AI examples | Call an API to fetch data](https://docs.n8n.io/advanced-ai/examples/api-workflow-tool/) in the documentation.

To use this workflow:

  1. Load it into your n8n instance.
  2. Add your credentials as prompted by the notes.

**Requires n8n 1.28.0 or above**

⚡ How to import this workflow into n8n:

  1. Click the Direct Download JSON button above to save Allow your AI to call an API to fetch data.json.
  2. Log in to your n8n Cloud or self-hosted n8n instance.
  3. In your workflow canvas, click the menu in top-right and select Import from File (or paste the JSON directly).
  4. Configure your credentials (e.g. API keys, database URLs) in the corresponding node settings.
  5. Click Execute Workflow to test and switch to Active!

Related AI Agents Workflows

View All in AI Agents →