Replace Mapbox public key - <your_public_key> in code
Configured with Agent, Aggregate, Airtable, Chat Trigger, and additional nodes. Review the connections and setup before adapting this template.
Node categories in this workflow
- AI & models
- Data store
- Trigger
- Transform
- Routing
- Subworkflow
- Code
- Web / API
Icons describe general node roles, inferred from node types. Inspect the parameters for the configured action.
Drag to pan; use + and − to zoom. Reconstructed from the exported node positions; nothing runs here. Dashed lines represent non-main connections. Full node names and notes appear below.
How it works
The exported workflow contains the following configured nodes. Their connections are shown above; inspect the JSON for the complete logic, expressions, and external actions.
| Node | Category | Type | Operation |
|---|---|---|---|
| OpenAI Chat Model | AI & models | OpenAI Chat Model | See node parameters |
| AI Agent | AI & models | Agent | See node parameters |
| Window Buffer Memory | Data store | Memory Buffer Window | See node parameters |
| When chat message received | Trigger | Chat Trigger | See node parameters |
| Execute Workflow Trigger | Trigger | Execute Workflow Trigger | See node parameters |
| Response | Transform | Edit Fields | See node parameters |
| Switch | Routing | Switch | See node parameters |
| Aggregate | Transform | Aggregate | See node parameters |
| Aggregate1 | Transform | Aggregate | See node parameters |
| Merge | Transform | Merge | See node parameters |
| Aggregate2 | Transform | Aggregate | See node parameters |
| If1 | Routing | If | See node parameters |
| Response1 | Transform | Edit Fields | See node parameters |
| Search records | Subworkflow | Tool Workflow | See node parameters |
| Process data with code | Subworkflow | Tool Workflow | See node parameters |
| Create map image | Code | Tool Code | See node parameters |
| Get list of bases | Subworkflow | Tool Workflow | See node parameters |
| Get base schema | Subworkflow | Tool Workflow | See node parameters |
| Get Bases | Data store | Airtable | base |
| Get Base/Tables schema | Data store | Airtable | base / getSchema |
| If filter description exists | Routing | If | See node parameters |
| Airtable - Search records | Web / API | HTTP Request | POST |
| OpenAI - Generate search filter | Web / API | HTTP Request | POST |
| Set schema and prompt | Transform | Edit Fields | See node parameters |
| Upload file to get link | Web / API | HTTP Request | POST |
| OpenAI - Download File | Web / API | HTTP Request | See node parameters |
| OpenAI - Get messages | Web / API | HTTP Request | See node parameters |
| OpenAI - Run assistant | Web / API | HTTP Request | POST |
| OpenAI - Send message | Web / API | HTTP Request | POST |
| OpenAI - Create thread | Web / API | HTTP Request | POST |
Setup
- Download the JSON and import it into an isolated n8n instance. Leave the workflow inactive.
- Connect your own credentials through n8n’s credential store. Replace
REPLACE_WITH_*values with your resource identifiers. - Inspect API destinations, Code nodes, database queries, file paths, and outbound actions.
- Run with synthetic data and harmless destinations. Enable triggers only after checking the actual outputs.
Requirements
An n8n instance with the listed node types and compatible versions. Service-connected workflows may require accounts, credentials, or paid APIs.
Credential types declared in the source
airtableTokenApihttpQueryAuthopenAiApi
Workflow notes
AI Agent to chat with Airtable and analyze data
AI Agent to chat with Airtable and analyze data
Made by Mark Shcherbakov from community 5minAI
Engaging with data stored in Airtable often requires manual navigation and time-consuming searches. This workflow allows users to interact conversationally with their datasets, retrieving essential information quickly while minimizing the need for complex queries.
This workflow enables an AI agent to facilitate chat interactions over Airtable data. The agent can:
- Retrieve order records, product details, and other relevant data.
- Execute mathematical functions to analyze data such as calculating averages and totals.
- Optionally generate maps for geographic data visualization.
- Dynamic Data Retrieval: The agent uses user prompts to dynamically query the dataset.
- Memory Management: It retains context during conversations, allowing users to engage in a more natural dialogue.
- Search and Filter Capabilities: Users can perform tailored searches with specific parameters or filters to refine their results.
Set up steps
Set up steps
-
Separate workflows:
- Create additional workflow and move there Workflow 2.
-
Replace credentials:
- Replace connections and credentials in all nodes.
-
Start chat:
- Ask questions and don't forget to mention required base name.
Replace Mapbox public key - <your_public_key> in code
Replace Mapbox public key - <your_public_key> in code
Purpose and structure
This folder contains the Replace Mapbox public key - <your_public_key> in code workflow. Its executable nodes use agent, aggregate, airtable, chatTrigger, executeWorkflowTrigger, httpRequest, if, lmChatOpenAi, memoryBufferWindow, merge, set, switch, toolCode, toolWorkflow. The table and connection map below are derived from the JSON, not an inferred guarantee of behavior.
Setup
Import inactive. Configure your own credentials and replace REPLACE_WITH_* values. Review external destinations and Code nodes before running.
Entry points
When chat message received, Execute Workflow Trigger
Verification
Sanitized source candidate; not runtime-tested. This overview is generated from node metadata. Read the folder README for the connection map, credential types, and license.
Attribution
https://github.com/Zie619/n8n-workflows/blob/94007c1445d9258a7da116646b79473e7c7c3282/workflows/Aggregate/0681_Aggregate_HTTP_Create_Webhook.json MIT; preserve source notices.
Canvas section labels
These name areas of the original canvas; they do not include explanatory instructions.
- Replace Mapbox public key - <your_public_key> in code
- Replace OpenAI connection
- Replace Airtable connection
- Workflow 1
- Workflow 2