Workflow: SearchApi AI Agent
Integrations: manualTrigger, noOp, stickyNote

{"id": "mvgpK03LMiYSiyxH", "meta": {"instanceId": "workflow-5b5d92e8", "versionId": "1.0.0", "createdAt": "2025-09-29T07:07:55.143845", "updatedAt": "2025-09-29T07:07:55.143863", "owner": "n8n-user", "license": "MIT", "category": "automation", "status": "active", "priority": "high", "environment": "production"}, "name": "SearchApi AI Agent", "tags": ["automation", "n8n", "production-ready", "excellent", "optimized"], "nodes": [{"id": "trigger-731c61e2", "name": "Manual Trigger", "type": "n8n-nodes-base.manualTrigger", "typeVersion": 1, "position": [100, 100], "parameters": {}}, {"id": "72554855-a492-4382-9e6d-f3eb4b8bccdd", "name": "When chat message received", "type": "n8n-nodes-base.noOp", "position": [600, 480], "webhookId": "d48f9e07-3c05-4be8-86ca-5cee4c27b78f", "parameters": {"options": {}}, "typeVersion": 1.1, "notes": "This chatTrigger node performs automated tasks as part of the workflow."}, {"id": "95d926d7-5c58-485d-bb44-0655ea71a172", "name": "Simple Memory", "type": "n8n-nodes-base.noOp", "position": [980, 700], "parameters": {"contextWindowLength": 20}, "typeVersion": 1.3, "notes": "This memoryBufferWindow node performs automated tasks as part of the workflow."}, {"id": "3c62679b-66c9-4d06-a291-90c33b0b6c1a", "name": "AI Agent", "type": "n8n-nodes-base.noOp", "position": [860, 480], "parameters": {"options": {}}, "typeVersion": 1.8, "notes": "This agent node performs automated tasks as part of the workflow."}, {"id": "050a87a7-b035-4d1b-bea6-915d413b31ac", "name": "Sticky Note", "type": "n8n-nodes-base.stickyNote", "position": [500, 260], "parameters": {"color": 5, "width": 340, "content": "## SearchApi AI Agent\nWhenever you ask a question that should be searched on the web, the AI Agent will use SearchAPI to do it. To run this workflow, you need to have the credentials for Searchapi.io and some LLM provider."}, "typeVersion": 1, "notes": "This stickyNote node performs automated tasks as part of the workflow."}, {"id": "8322c743-0f0a-49a8-bff7-ec4960a75287", "name": "Sticky Note1", "type": "n8n-nodes-base.stickyNote", "position": [1360, 800], "parameters": {"width": 260, "height": 120, "content": "## Tip\nYou can change the node to use any of the engines available on [SearchAPI.io]({{ $env.API_BASE_URL }}"}, "typeVersion": 1, "notes": "This stickyNote node performs automated tasks as part of the workflow."}, {"id": "45085fa9-7be4-41b0-9f2f-a6d4c8ff6979", "name": "SearchApi", "type": "n8n-nodes-base.noOp", "position": [1120, 700], "parameters": {"parameters": {"parameter": [{"name": "q", "value": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('parameter0_Value', ``, 'string') }}"}]}, "requestOptions": {}}, "typeVersion": 1, "notes": "This searchApiTool node performs automated tasks as part of the workflow."}, {"id": "f4edfcf7-a083-4781-9381-0b3c57f0d0bb", "name": "OpenAI Chat Model", "type": "n8n-nodes-base.noOp", "position": [840, 700], "parameters": {"model": {"__rl": true, "mode": "list", "value": "gpt-4o-mini"}, "options": {}}, "typeVersion": 1.2, "notes": "This lmChatOpenAi node performs automated tasks as part of the workflow."}], "active": false, "pinData": {}, "settings": {"executionOrder": "v1", "saveManualExecutions": true, "callerPolicy": "workflowsFromSameOwner", "errorWorkflow": null, "timezone": "UTC", "executionTimeout": 3600, "maxExecutions": 1000, "retryOnFail": true, "retryCount": 3, "retryDelay": 1000}, "versionId": "1256a1a1-cf4e-4c91-8047-70bca3d93ca2", "connections": {"45085fa9-7be4-41b0-9f2f-a6d4c8ff6979": {"main": [[{"node": "error-handler-45085fa9-7be4-41b0-9f2f-a6d4c8ff6979", "type": "main", "index": 0}], [{"node": "error-handler-45085fa9-7be4-41b0-9f2f-a6d4c8ff6979-6c30d998", "type": "main", "index": 0}], [{"node": "error-handler-45085fa9-7be4-41b0-9f2f-a6d4c8ff6979-c59c9267", "type": "main", "index": 0}], [{"node": "error-handler-45085fa9-7be4-41b0-9f2f-a6d4c8ff6979-ea0400a8", "type": "main", "index": 0}], [{"node": "error-handler-45085fa9-7be4-41b0-9f2f-a6d4c8ff6979-e0377d2d", "type": "main", "index": 0}]]}, "f4edfcf7-a083-4781-9381-0b3c57f0d0bb": {"main": [[{"node": "error-handler-f4edfcf7-a083-4781-9381-0b3c57f0d0bb-f48add86", "type": "main", "index": 0}]]}}, "description": "Automated workflow: SearchApi AI Agent. This workflow integrates 7 different services: stickyNote, agent, stopAndError, lmChatOpenAi, memoryBufferWindow. It contains 10 nodes and follows best practices for error handling and security.", "notes": "Excellent quality workflow: SearchApi AI Agent. This workflow has been optimized for production use with comprehensive error handling, security, and documentation."}