Deploy a powerful n8n workflow using an AI agent, OpenAI, and Peliqan to transform natural language questions into accurate SQL queries against your Uniconta ERP data, leveraging Text-to-SQL technology.
Download this n8n workflow template and start using it instantly.
Business Analysts needing quick insights from Uniconta ERP data.
Developers building custom internal tools and chat interfaces.
Automation specialists looking for advanced Text-to-SQL n8n templates.
Companies using n8n to connect AI services with proprietary business data.
This expert n8n workflow solves the challenge of non-technical users accessing complex ERP data by transforming natural language queries into executable SQL commands. By leveraging an AI Agent framework combined with the Peliqan data synchronization tool, this solution provides real-time access to Uniconta ERP information (like creditor status, GL accounts, stock levels, and invoices).
The core value of this n8n template lies in the precise configuration of the AI Agent. The agent is trained specifically on the Uniconta data model (schema provided in the system message), ensuring that the generated SQL is accurate and relevant to your actual data structure. This sophisticated n8n node setup enables fast, reliable, and conversational data retrieval, dramatically improving efficiency for data-driven decisions.
This automation initiates when a user sends a message, leveraging a specialized n8n trigger for chat interfaces.
When chat message received n8n trigger, capturing the user's natural language question.AI Agent n8n node. This agent connects to the OpenAI Chat Model for reasoning and uses the Simple Memory n8n node to maintain conversational context.Execute an SQL query via Peliqan n8n tool. This Peliqan n8n node is specifically configured to receive the AI-generated SQL query and execute it against the Uniconta data synchronized in the Peliqan data warehouse.AI Agent.To deploy this advanced n8n workflow, follow these steps:
OpenAI Chat Model n8n node.Execute an SQL query via Peliqan n8n node and select your specific Peliqan data warehouse name or ID.export N8NCOMMUNITYPACKAGESALLOWTOOL_USAGE=True. When chat message received (n8n trigger): Acts as the entry point for the n8n workflow, listening for user input from the chat interface to initiate the Text-to-SQL process.
AI Agent (Langchain Agent n8n node): The core orchestrator.
Function: Manages the conversation flow, selects the appropriate tool, and generates SQL based on the system instructions.
Key Configuration: Contains an extensive system message defining the AI's role and providing the complete Uniconta database schema (tables like uniconta.debtorclient, uniconta.glaccountclient, etc.) necessary for accurate SQL generation.
OpenAI Chat Model (Langchain LLM n8n node): Provides the language model capability (the 'brain') for the AI Agent, handling the complex reasoning required for Text-to-SQL.
Simple Memory (Langchain Memory n8n node): Ensures the AI Agent remembers the context of previous messages within the chat session, enabling multi-turn conversations.
Execute an SQL query via Peliqan (Peliqan Tool n8n node):
Function: Executes the dynamically generated SQL against the Peliqan data warehouse containing the Uniconta data.
Key Configuration*: Query Sql is set dynamically using the expression {{ $fromAI('SQL_Query', , 'string') }}, capturing the SQL output from the AI Agent.
Use this powerful n8n workflow to create an AI Agent capable of querying Cin7 ERP data via natural language. Integrates n8n nodes for Peliqan and OpenAI for Text-to-SQL automation.

Use this n8n workflow to create an MCP Server endpoint, allowing AI agents to query BikeWise cycling incident data using dynamic parameters via a dedicated n8n trigger. Find more n8n templates for AI tooling.

Automate appointment scheduling using a powerful n8n workflow. Qualify leads instantly with AI, use multi-step n8n forms, and integrate human approval via Gmail.

Deploy an advanced AI assistant using this n8n workflow. It combines Retrieval-Augmented Generation (RAG) via Supabase and Text-to-SQL via Peliqan to query internal documents and quantitative business data effectively. This n8n template accelerates BI.

Peliqan.io is the one-click data foundation for our n8n AI Agents. Add all your business applications for RAG and "Text to SQL", and build AI chatbots and AI Agents that can interact with all internal company data from CRM, ERP, cloud storage, accounting, HRM/ATS etc.







































