A brief guide to building intelligent ERP solutions with n8n
A brief guide to building intelligent ERP solutions with n8n
An ERP AI chatbot is an intelligent virtual assistant that integrates with Enterprise Resource Planning (ERP) systems, enabling users to interact with business data through natural language conversations. This tutorial shows how to build two different ERP automation workflows with n8n.
ERP AI chatbots are intelligent assistants that bridge the gap between users and complex ERP systems. They allow employees to query business data, create records, and automate workflows using natural language instead of navigating complex ERP interfaces.
This workflow automatically converts sales inquiry emails into Odoo opportunities with AI-generated summaries.
Set up a Gmail Trigger node to monitor incoming emails. You can filter by label (e.g., 'Sales') to only process relevant messages.
{
"pollTimes": {
"item": [
{
"mode": "everyMinute"
}
]
},
"labelIds": ["Label_Sales"],
"format": "simple"
}Use OpenAI to summarize the email and extract key information like project details, budget, and timeline.
System Prompt:
Write a concise summary of the following sales inquiry email. Extract:
- Project description
- Estimated budget (if mentioned)
- Timeline or deadline
- Key requirements
- Contact preferences
Email content: {{$json.body}}Automatically create a new sales opportunity in Odoo using the extracted information. Add the AI summary as internal notes.
{
"resource": "opportunity",
"operation": "create",
"name": "{{$json.subject}}",
"partner_id": "{{$json.fromEmail}}",
"description": "{{$json.aiSummary}}",
"stage_id": 1
}Build an intelligent chatbot that can answer questions about your sales pipeline, opportunities, and business data.
Retrieve relevant data from Odoo (opportunities, customers, products) and format it as context for the AI agent.
// Retrieve opportunities from Odoo
const opportunities = $('Odoo').all();
// Format for AI context
const context = opportunities.map(opp => ({
name: opp.json.name,
value: opp.json.expected_revenue,
stage: opp.json.stage_id,
probability: opp.json.probability
}));
return { context: JSON.stringify(context) };Set up an AI Agent with access to ERP data and tools for calculations and data queries.
System Message:
You are an ERP assistant with access to our sales pipeline data. You can:
- Answer questions about opportunities, revenue, and forecasts
- Calculate totals and averages
- Provide insights on sales performance
- Help users find specific opportunities or customers
Context: {{$json.context}}
Be concise, accurate, and helpful. Always base your answers on the provided context.Enhance the agent with tools like a calculator for computing revenue totals, averages, and forecasts.
Make the chatbot available to your team through hosted chat or embed it in your internal tools.
ERP AI chatbots transform how employees interact with business systems, making data more accessible and processes more efficient. Start with simple email automation, then gradually build more sophisticated conversational interfaces as you become comfortable with the technology.