Query Airtable Data Directly from Obsidian using AI - n8n Workflow

Use this powerful n8n workflow to query Airtable data instantly from Obsidian Notes using an AI Agent. Leverage the n8n node ecosystem for rapid knowledge retrieval via an n8n trigger.

Workflow Preview

Ready to automate?

Download this n8n workflow template and start using it instantly.

Who is this best for?


  • Obsidian Power Users: Those who use Obsidian as a central knowledge hub and want integrated database access.

  • Airtable Managers: Users needing quick, natural language access to their Airtable databases without leaving their writing environment.

  • Automation Engineers: Anyone looking for advanced n8n templates integrating AI agents and third-party tools.

  • Knowledge Workers: Professionals who want to reduce context switching and speed up data retrieval using a custom n8n trigger.

Overview

Context switching between a note-taking application and external databases like Airtable significantly hinders productivity. This innovative n8n workflow solves this by allowing users to highlight a question in Obsidian and receive an immediate, AI-generated answer based on live Airtable data.

This specialized n8n template demonstrates a powerful use case for the n8n AI Agent node, where the agent is equipped with the ability to query Airtable. The entire process is initiated by an HTTP request, acting as the primary n8n trigger, ensuring near-instantaneous results directly within your Obsidian vault. Using this n8n workflow transforms Obsidian into a comprehensive front-end for your structured data, greatly enhancing knowledge management.

How it Works

This automation is initiated when a user highlights text (the natural language query) in Obsidian and sends it via the Post Webhook plugin.


  1. Webhook Trigger: The Webhook Set Up in Obsidian n8n trigger receives the POST request containing the user's question.

  2. AI Agent Activation: The highlighted text is passed to the AI Agent n8n node.

  3. LLM and Tool Configuration: The AI Agent is connected to the OpenAI Chat Model (GPT-4o-mini) and provided access to the Airtable n8n node as a search tool. The agent's prompt determines that it must use the Airtable tool to find relevant data before formulating an answer.

  4. Data Search: The AI Agent translates the user's natural language question into a structured query for the Airtable tool, which performs a search operation on the configured base and table.

  5. Response Generation: The AI Agent receives the data from Airtable, synthesizes the final answer using the OpenAI model, and formats the output.

  6. Obsidian Response: Finally, the Respond to Obsidian n8n node takes the AI Agent's output and sends it back via the original webhook connection, displaying the answer immediately below the selected text in the Obsidian note.

Installation Guide

To deploy this powerful n8n workflow, follow these steps:


  1. Import the n8n Workflow: Copy the provided JSON and import it directly into your n8n instance.

  2. Set up Credentials: Establish credentials for the following services:

Airtable: Configure the Personal Access Token for the Airtable n8n node.
OpenAI: Configure your API Key for the OpenAI Chat Model n8n node.

  1. Configure Airtable Node: Adjust the Airtable n8n node to point to the correct Base and Table that your AI agent should search.

  2. Get Webhook URL: Activate the Webhook Set Up in Obsidian n8n trigger and copy the resulting webhook URL.

  3. Obsidian Setup:

Install the Post Webhook Plugin in your Obsidian vault.
In the plugin settings, insert the copied n8n Webhook URL. You may need to configure the payload type to correctly send the highlighted selection as the body content.

  1. Test: Highlight a relevant question in Obsidian and use the command palette (Ctrl+P) to trigger the webhook and test the full n8n workflow.

Node Details

This n8n workflow relies on a tight integration of specialized n8n nodes:

Webhook Set Up in Obsidian (n8n trigger):
Function: Serves as the starting n8n trigger, listening for a POST request from the Obsidian plugin.
Key Configuration: Set to Response Node mode to allow the workflow to respond directly back to the calling client (Obsidian).
AI Agent (n8n node):
Function: The orchestrator of the intelligence. It receives the user query and determines if it needs to execute a tool (Airtable) before answering. It uses the input ={{ $json.body.content }} which is the highlighted text.
OpenAI Chat Model (n8n node):
Function: Provides the language model (GPT-4o-mini) capability necessary for the AI Agent to reason, interpret queries, and structure responses. It is used in conjunction with the AI Agent.
Airtable (n8n tool node):
Function: Acts as the search tool available to the AI Agent. Configured for a search operation on a specific table.
Key Configuration: Must be linked to the correct Airtable Base ID and Table ID where the required data resides.
Respond to Obsidian (n8n node):
Function: Sends the final, synthesized output from the AI Agent back to the initiating webhook connection, allowing the result to appear instantly in Obsidian.
* Key Configuration: Responds with the text ={{ $json.output }}, which is the final generated answer from the AI Agent.

Related n8n Workflows

Free

Nodes: 6 Nodes
Updated: December 26 2025
View all
Created by
Obsidi8n
Obsidi8n

Featured*