This workflow follows the Agent → Execute Workflow Trigger recipe pattern — see all workflows that pair these two integrations.
The workflow JSON
Copy or download the full n8n JSON below. Paste it into a new n8n workflow, add your credentials, activate. Full import guide →
{
"name": "Preguntas",
"nodes": [
{
"parameters": {
"inputSource": "passthrough"
},
"id": "c055762a-8fe7-4141-a639-df2372f30060",
"typeVersion": 1.1,
"name": "When Executed by Another Workflow",
"type": "n8n-nodes-base.executeWorkflowTrigger",
"position": [
272,
352
]
},
{
"parameters": {
"promptType": "define",
"text": "=Consulta del usuario: \"{{ $json.query }}\"\n\nInstrucci\u00f3n: Busca la informaci\u00f3n necesaria en las herramientas 'tool_menu' o 'tool_faq' y devuelve el resumen de datos encontrados.",
"options": {
"systemMessage": "# ROL\nEres un Asistente de Recuperaci\u00f3n de Informaci\u00f3n de Backend.\nTu \u00daNICO objetivo es consultar las bases de datos disponibles (`tool_menu` y `tool_faq`) para encontrar la respuesta exacta a la consulta del usuario.\n\n# TUS HERRAMIENTAS\n1. **tool_menu**: \u00dasala cuando la consulta trate sobre comida, bebidas, precios, ingredientes, al\u00e9rgenos o \"qu\u00e9 trae\" una hamburguesa.\n2. **tool_faq**: \u00dasala cuando la consulta trate sobre horarios, direcciones, zonas de delivery, tiempos de demora, m\u00e9todos de pago aceptados o pol\u00edticas del local.\n\n# INSTRUCCIONES DE PROCESAMIENTO\n1. Analiza la pregunta del usuario.\n2. Decide qu\u00e9 herramienta tiene la respuesta. Si la pregunta es compleja (ej: \"\u00bfCu\u00e1nto sale la doble y hasta qu\u00e9 hora abren?\"), usa AMBAS herramientas.\n3. Ejecuta la b\u00fasqueda.\n4. Tu respuesta final debe ser SOLO UN RESUMEN T\u00c9CNICO de los datos encontrados.\n\n# REGLAS DE RESPUESTA (IMPORTANTE)\n- NO saludes, NO seas amable, NO uses emojis.\n- NO inventes informaci\u00f3n. Si la b\u00fasqueda en la tool no devuelve nada, responde: \"DATO_NO_ENCONTRADO\".\n- Si encuentras precios, incl\u00fayelos expl\u00edcitamente.\n- Si encuentras horarios, s\u00e9 espec\u00edfico.\n\n# FORMATO DE SALIDA DESEADO\nDebes devolver un texto plano estructurado as\u00ed:\n\n[DATOS ENCONTRADOS]\n- Item: [Nombre del producto/Tema]\n- Detalle: [Descripci\u00f3n, ingredientes o respuesta de la FAQ]\n- Precio/Valor: [Si aplica]\n\nEjemplo de salida correcta:\n\"[DATOS ENCONTRADOS]\n- Item: Hamburguesa Doble Queso\n- Detalle: Medall\u00f3n de carne 120g x2, queso cheddar, panceta.\n- Precio: $8500\n- Item: Horarios\n- Detalle: Lunes a Domingo de 19:00 a 23:00hs.\""
}
},
"type": "@n8n/n8n-nodes-langchain.agent",
"typeVersion": 3.1,
"position": [
480,
352
],
"id": "86c3586b-dc2b-4d37-9434-310de0f65970",
"name": "AI Agent"
},
{
"parameters": {
"model": {
"__rl": true,
"value": "gpt-4o",
"mode": "list",
"cachedResultName": "gpt-4o"
},
"builtInTools": {},
"options": {}
},
"type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
"typeVersion": 1.3,
"position": [
352,
560
],
"id": "a2dd4ef7-e974-4eaa-8574-4685ec52886e",
"name": "OpenAI Chat Model",
"credentials": {
"openAiApi": {
"name": "<your credential>"
}
}
},
{
"parameters": {
"operation": "get",
"dataTableId": {
"__rl": true,
"value": "9qFgd1Npwmhg4Rjv",
"mode": "list",
"cachedResultName": "FAQ",
"cachedResultUrl": "/projects/jBEOe5DECmoA4IC9/datatables/9qFgd1Npwmhg4Rjv"
},
"returnAll": true
},
"type": "n8n-nodes-base.dataTableTool",
"typeVersion": 1.1,
"position": [
672,
592
],
"id": "14ac1989-b37f-4160-bd4d-2373628ffed3",
"name": "FAQ"
},
{
"parameters": {
"operation": "get",
"dataTableId": {
"__rl": true,
"value": "Xmqa9lNTcFTM7Y5m",
"mode": "list",
"cachedResultName": "Menu",
"cachedResultUrl": "/projects/jBEOe5DECmoA4IC9/datatables/Xmqa9lNTcFTM7Y5m"
},
"returnAll": true
},
"type": "n8n-nodes-base.dataTableTool",
"typeVersion": 1.1,
"position": [
560,
592
],
"id": "7cf4689d-b606-430c-80f0-c1ba91a8e619",
"name": "Menu"
}
],
"connections": {
"When Executed by Another Workflow": {
"main": [
[
{
"node": "AI Agent",
"type": "main",
"index": 0
}
]
]
},
"AI Agent": {
"main": [
[]
]
},
"OpenAI Chat Model": {
"ai_languageModel": [
[
{
"node": "AI Agent",
"type": "ai_languageModel",
"index": 0
}
]
]
},
"FAQ": {
"ai_tool": [
[
{
"node": "AI Agent",
"type": "ai_tool",
"index": 0
}
]
]
},
"Menu": {
"ai_tool": [
[
{
"node": "AI Agent",
"type": "ai_tool",
"index": 0
}
]
]
}
},
"active": true,
"settings": {
"executionOrder": "v1",
"availableInMCP": false
},
"versionId": "b60c4f90-f3e5-4a0d-b4ef-b635ede0e247",
"meta": {
"templateCredsSetupCompleted": true
},
"id": "raLee5YZrcNX51mQ",
"tags": []
}
Credentials you'll need
Each integration node will prompt for credentials when you import. We strip credential IDs before publishing — you'll add your own.
openAiApi
For the full experience including quality scoring and batch install features for each workflow upgrade to Pro
About this workflow
Preguntas. Uses executeWorkflowTrigger, agent, lmChatOpenAi, dataTableTool. Event-driven trigger; 5 nodes.
Source: https://github.com/pjcdz/restaurantes/blob/8467633188cd89e4708b8011ee2a0fb39b7f1a24/n8n/Preguntas.json — original creator credit. Request a take-down →
Related workflows
Workflows that share integrations, category, or trigger type with this one. All free to copy and import.
Enrich Company Data from Google Sheet with OpenAI Agent and Scraper Tool. Uses outputParserStructured, lmChatOpenAi, googleSheets, toolWorkflow. Event-driven trigger; 13 nodes.
Discord Agent. Uses executeWorkflowTrigger, agent, lmChatOpenAi, chatTrigger. Event-driven trigger; 13 nodes.
CoinMarketCap_Crypto_Agent_Tool. Uses executeWorkflowTrigger, agent, lmChatOpenAi, memoryBufferWindow. Event-driven trigger; 13 nodes.
Access real-time cryptocurrency prices, market rankings, metadata, and global stats—powered by GPT-4o and CoinMarketCap! This modular AI-powered agent is part of a broader CoinMarketCap multi-agent sy
📉 Detect key candlestick reversal patterns and volume divergence on Tesla (TSLA) using GPT-4.1 and real-time OHLCV data. This AI agent evaluates 1-hour and 1-day candles and is an essential part of th