Automate Odoo Sales with ERP AI Chatbot & n8n

Streamline your Odoo sales opportunities with this unique n8n workflow using ERP AI chatbot integration. Automate data fetching, summarization, and conversational querying to save hours and boost decision-making accuracy.
scheduleTrigger
odoo
lmOpenAi
+10
Workflow Identifier: 2228
NODES in Use: Schedule Trigger, Odoo, Aggregate, Langchain OpenAI, Langchain Chat Model, Langchain Agent, Calculator, Convert to File, Read/Write File, Extract From File, If, Chat Trigger, Window Buffer Memory

Press CTRL+F5 if the workflow didn't load.

Learn how to Build this Workflow with AI:

Visit through Desktop for Best experience

What This Automation Does

This workflow fetches sales opportunities from an Odoo ERP system every set time.

It collects info about deals including won status, contacts, and expected money.

Then, it uses the GPT-4 Turbo model from OpenAI to make a short, clear summary of all sales data.

The summary saves as a file for easy access later.

The user can ask questions in a chatbot, which replies using the summary and keeps memory of past talks.

This saves many hours weekly on reporting and lowers errors in sales updates.


Tools and Services Used

  • Odoo ERP API: Provides sales opportunity data.
  • OpenAI GPT-4 Turbo: Summarizes and answers sales questions.
  • n8n Automation Platform: Runs the scheduled flow and chatbot.
  • Langchain: Manages AI chain and conversation memory.

Who Should Use This Workflow

This is useful for sales managers who spend too much time making sales reports.

Also good for teams needing quick, clear answers about current sales chances.

It works for users with some basic knowledge about APIs and n8n setup.


Workflow Inputs, Processing, and Outputs

Inputs

  • Odoo ERP sales opportunity data via API (won status, description, contact info, expected revenue).
  • User text questions triggered through the chatbot interface.

Processing Steps

  • Automatically fetch and collect all sales opportunities with a timed schedule.
  • Combine and merge all fetched opportunity records into one dataset.
  • Use OpenAI GPT-4 Turbo via Langchain to generate a short, easy-to-read summary per opportunity.
  • Convert the summary to a text file and save it locally for fast reuse.
  • When chatbot starts, read the cached summary file if it exists; if not, refresh data from Odoo.
  • Answer user questions using a conversational AI agent, which keeps track of previous messages using memory buffers.
  • Allow the agent to use a calculator tool to do simple math during conversations.

Outputs

  • A saved text file holding the latest sales summary.
  • Interactive chatbot replies based on up-to-date sales data and conversation context.

Beginner Step-by-Step: How To Use This Workflow In n8n

Step 1: Import the Workflow

  1. Download the workflow file using the Download button given on this page.
  2. Inside the n8n editor, choose “Import from File” to load the workflow.

Step 2: Configure Credentials

  1. Add your Odoo ERP API credentials under Credentials → New → Odoo API with your server URL, username, and API key.
  2. Add your OpenAI API key under Credentials → New → OpenAI API.

Step 3: Update Node Settings if Needed

  1. Check nodes like Get All Opportunities from Odoo to ensure correct fields and “Return All” is enabled.
  2. Verify file path and name in Save Summary to File and Read Summary From File if your system setup differs.
  3. If needed, update any emails, IDs, or channels used in chatbot or file nodes.

Step 4: Test and Activate

  1. Run the scheduled trigger Schedule Trigger manually to create the initial summary file.
  2. Test chatbot by sending input to the Chat Trigger node to check the AI answers.
  3. If all works well, toggle the workflow toggle to “Active” to start automatic runs.

Remember to check logs and file storage occasionally for errors or missing data.

For advanced privacy or control, consider self-host n8n.


Customizations

  • Change how often sales data updates by altering the interval in Schedule Trigger.
  • Add more fields like probability or customer segments in the Odoo node for deeper summaries.
  • Edit AI prompt text inside the Summarize Opportunities and AI Conversational Agent nodes for company-specific language.
  • Move summary saving and reading from local files to cloud storage such as AWS S3 by swapping the appropriate nodes.
  • Add security to the chatbot’s public endpoint by enabling authentication or API key validation.

Troubleshooting

Problem: Cannot Connect to Odoo API

Cause: The credential details or API URL might be wrong.

Solution: Verify and update Odoo API credentials under n8n Credentials with correct server URL, username, and API key.

Problem: OpenAI API Key Not Accepted

Cause: API key expired or malformed.

Solution: Replace OpenAI API key with a valid key from the OpenAI dashboard.

Problem: cache.txt Summary File Missing

Cause: File was deleted or creation failed.

Solution: Run Schedule Trigger manually to regenerate the file; check file permissions if errors persist.


Pre-Production Checklist

  • Confirm Odoo API credentials connect successfully.
  • Check OpenAI API key is valid and active in credentials.
  • Run Schedule Trigger node manually and ensure cache.txt is created with summary text.
  • Send test input to the chatbot and check AI responses.
  • Backup current summary file before any workflow changes.

Deployment Guide

Turn the workflow “Active” in the n8n editor to start automated runs.

Monitor executions and watch for errors in the n8n log viewer.

Share chatbot webhook securely only with authorized users.

Check storage for cache.txt regularly to ensure summary updates.


Summary / Results

✓ Saves roughly five hours every week on manual sales reporting.

✓ Reduces mistakes by automating data fetching and summarizing.

✓ Gives clear, easy summaries of all active sales opportunities.

✓ Enables real-time chatbot answering important sales questions.

✓ Keeps conversation context for ongoing user interactions.

✓ Frees sales managers to focus more on closing deals, less on data work.


Frequently Asked Questions

Add Odoo server URL, username, and API key under n8n Credentials → New → Odoo API before running the workflow.
Replace the invalid or expired API key with a valid one from the OpenAI dashboard in n8n Credentials.
Send messages to the Chat Trigger node webhook URL after activating the workflow; the AI replies using the latest sales summary.
Yes, it fetches all opportunities with pagination and summarizes them, but check OpenAI token limits for very large data.

Promoted by BULDRR AI

Related Workflows

Automate Viral UGC Video Creation Using n8n + Degaus (Beginner-Friendly Guide)

Learn how to automate viral UGC video creation using n8n, AI prompts, and Degaus. This beginner-friendly guide shows how to import, configure, and run the workflow without technical complexity.
Form Trigger
Google Sheets
Gmail
+37
Free

AI SEO Blog Writer Automation Workflows in n8n

A complete beginner guide to building an AI SEO blog writer automation using n8n.
AI Agent
Google Sheets
httpRequest
+5
Free

Automate CrowdStrike Alerts with VirusTotal, Jira & Slack

This workflow automates processing of CrowdStrike detections by enriching threat data via VirusTotal, creating Jira tickets for incident tracking, and notifying teams on Slack for quick response. Save hours daily by transforming complex threat data into actionable alerts effortlessly.
scheduleTrigger
httpRequest
jira
+5
Free

Automate Telegram Invoices to Notion with AI Summaries & Reports

Save hours on financial tracking by automating invoice extraction from Telegram photos to Notion using Google Gemini AI. This workflow extracts data, records transactions, and generates detailed spending reports with charts sent on schedule via Telegram.
lmChatGoogleGemini
telegramTrigger
notion
+9
Free

Automate Email Replies with n8n and AI-Powered Summarization

Save hours managing your inbox with this n8n workflow that uses IMAP email triggers, AI summarization, and vector search to draft concise replies requiring minimal review. Automate business email processing efficiently with AI guidance and Gmail integration.
emailReadImap
vectorStoreQdrant
emailSend
+12
Free

Automate Email Campaigns Using n8n with Gmail & Google Sheets

This n8n workflow automates personalized email outreach campaigns by integrating Gmail and Google Sheets, saving hours of manual follow-up work and reducing errors in email sequences. It ensures timely follow-ups based on previous email interactions, optimizing communication efficiency.
googleSheets
gmail
code
+5
Free