Documentation CRM Odoo

CRM integration

Odoo

Odoo AI integration
  • CategoryCRM
  • AuthAPI key
  • Scopes5

Overview

Connect Odoo to sync contacts between Odoo and MessageMind and to let the AI agent answer customers who ask about a sales order. You connect with an Odoo API key. In Odoo Settings you choose whether contacts come into MessageMind, go back to Odoo, or both. Neither side ever deletes the other's contacts.

What MessageMind can do with it

  • Brings the people in your Odoo Contacts into Workspace > Contacts, with their details, their Odoo tags as labels and their Odoo custom fields.
  • Keeps those contacts up to date. With live updates on, a contact created or changed in Odoo shows up shortly after. Without them, Odoo is checked for changes every 5 minutes. A full check runs once a week either way.
  • Sends changes made in MessageMind to the matching Odoo contact. If the Odoo user may create contacts, new MessageMind contacts are added to Odoo as well, including people who message you for the first time.
  • Before adding a contact to Odoo, it looks for one with the same email or phone number and links to it when there is exactly one match.
  • When the same detail was changed on both sides between two syncs, the more recent change is kept. A field emptied on one side never clears the other.
  • Lets the AI agent tell a customer where their sales order stands (status, delivery, carrier and tracking) when they write by WhatsApp or SMS from the phone number on the order.
  • Can stay connected alongside another CRM, such as HubSpot or Salesforce.

Requirements

  • A MessageMind Starter, Professional or Enterprise plan.
  • An Odoo you can open over HTTPS from the internet. Odoo Online, Odoo.sh and your own installation all work.
  • On Odoo Online, the Custom pricing plan.
  • An Odoo user that can at least read Contacts, and an API key created while signed in as that user. The rights each feature needs are listed under Authentication and permissions.

How to connect

  1. In Odoo, sign in as the user MessageMind should act as. If you want changes made in MessageMind to reach Odoo, pick a user who can edit Contacts.
  2. Click your avatar in the top-right corner, open Preferences, go to Account Security and click New API Key.
  3. Follow Odoo's prompts, then copy the key straight away.
  4. In MessageMind, open Connections > Integrations and find Odoo under CRM, or type Odoo in the search box.
  5. Click Connect on the Odoo row. The Connect Odoo window opens with four fields.
  6. In Odoo URL, enter the address you use to open Odoo, for example https://mycompany.odoo.com, with nothing after it.
  7. In Database, enter the name of your Odoo database exactly as Odoo spells it. On Odoo Online it is usually the first part of your address: mycompany for mycompany.odoo.com. On your own installation, use the name shown on the Odoo login screen.
  8. In Login Email, enter the email of the Odoo user who created the key.
  9. Paste the key into API Key and click Connect.
  10. MessageMind checks the details with Odoo, then the Odoo row shows as connected.
  11. Click the gear button on the Odoo row to open Odoo Settings.
  12. Turn on Sync Odoo Contacts, then turn on Bring Odoo contacts into MessageMind, Send MessageMind changes to Odoo, or both.
  13. Click Save. With Bring Odoo contacts into MessageMind on, your Odoo contacts start arriving in Workspace > Contacts right away.

Authentication and permissions

Mechanism
You paste an Odoo API key into the Connect Odoo window, along with your Odoo address, its name and the login email of the user the key belongs to. The key carries that user's rights, so MessageMind can only do in Odoo what that user is allowed to do. Users with two-factor authentication turned on connect the same way.
Credentials
Odoo URL, Database, Login Email and API Key. Create the key in Odoo while signed in as that user, from your avatar > Preferences > Account Security > New API Key.

Required scopes

  • Read access to Contacts.
  • Permission to edit contacts, if you want MessageMind changes sent to Odoo. An Odoo administrator grants it in Settings > Users by giving the user Contacts > Contact Creation.
  • Permission to create contacts, if you want new MessageMind contacts added to Odoo.
  • Read access to Sales, with the Sales app installed, if you want the AI agent to look up sales orders.
  • For live updates, Settings access as an Odoo administrator and the Automation Rules app installed. Without them, Odoo is checked for changes every 5 minutes instead.

Available data and actions

Reads

  • Individual Odoo contacts: name, email, phone, mobile, company, job position, website, notes, street, street 2, city, zip, state, country, tax ID, language and reference.
  • The tags on each contact, and your Odoo custom fields on contacts, including fields made with Odoo Studio.
  • Whether a contact is archived in Odoo.
  • What the connected user may do with contacts (read, edit, create). This is checked when you connect, once a day, and whenever you click Check again in Odoo Settings.
  • For order lookup: the order the customer names, with its status, order date, quotation expiry, promised date and delivery status, the phone numbers of the customer on the order, and up to five shipments with carrier, tracking number and tracking link.

Writes

  • New Odoo contacts for MessageMind contacts that have no match in Odoo, when the user may create contacts.
  • Updates to linked Odoo contacts: name, email, phone numbers, job position, website, address, tax ID, language and reference.
  • Tags on Odoo contacts, when a contact gets a MessageMind label whose name matches a tag that already exists in Odoo.
  • Automation rules named MessageMind contact sync, added to your Odoo for live updates when the user is allowed to create them. They are removed when you disconnect.

AI agent use cases

  • A customer writes on WhatsApp: "Has order S00412 shipped yet?" The AI agent finds the order in Odoo, checks that the WhatsApp number is the one on the order and replies with the delivery status, the carrier and the tracking link.
  • A customer texts: "Is quotation S00388 still valid?" The AI agent reads the quotation in Odoo and replies with the date it is valid until, or tells them it has expired.
  • Your sales team adds a VIP tag to a customer in Odoo. With Bring Odoo contacts into MessageMind on, the contact gets a VIP label in MessageMind too.
  • Your team corrects a customer's email address in MessageMind. With Send MessageMind changes to Odoo on, the linked Odoo contact gets the new address as well.

Configuration

  • Click the gear button on the Odoo row in Connections > Integrations to open Odoo Settings. Change what you need, then click Save at the top of the page.
  • Sync Odoo Contacts is the main switch for contact sync.
  • Bring Odoo contacts into MessageMind adds new and changed Odoo contacts to MessageMind.
  • Send MessageMind changes to Odoo writes your changes to the matching Odoo contacts.
  • Let your AI look up sales orders sits under AI assistant and works without Sync Odoo Contacts. When you turn it on and click Save, Odoo is asked straight away whether the user can read sales orders.
  • Access in Odoo shows what the key may do (Read & write, Read only, Write only or Rights unknown), how Odoo changes reach MessageMind ("Live updates on. Full check weekly." or "Checking Odoo every 5 minutes.") and when the rights were last checked.
  • When an Odoo administrator changes the user's rights, click Check again. Odoo is asked right away, "Checked with Odoo just now." appears and the switches follow the new rights without reconnecting. Rights are also checked by themselves once a day.

Example workflows

Import your existing Odoo contacts and watch the progress

  1. In Odoo Settings, turn on Sync Odoo Contacts and Bring Odoo contacts into MessageMind, and save.
  2. Open Workspace > Contacts and click Import.
  3. Click the Odoo tile, then Continue.
  4. The Import from Odoo window shows how many contacts Odoo has, for example "1250 contacts found in Odoo". Click Start import.
  5. Follow the progress bar, the Processed count and the New and Updated totals. You can close the window and the import keeps running.
  6. When it finishes, a summary shows how many new contacts were imported and how many existing ones were updated. Contacts that already existed in MessageMind were updated, not duplicated.

A customer asks about an order on WhatsApp

  1. In Odoo Settings, turn on Let your AI look up sales orders and click Save.
  2. A customer writes on WhatsApp from the phone number saved on their Odoo contact: "Where is my order S00231?"
  3. The AI agent looks up S00231 in Odoo and checks that the customer's number is on the order.
  4. It replies with the order status and delivery status. For a shipped order it adds the carrier, the tracking number and the tracking link.
  5. Order details stay private to the customer whose phone number is on the order.

Disconnect and reconnect

  • Open Connections > Integrations and click Disconnect on the Odoo row. It happens at once and shows "Integration Successfully Removed".
  • The live-update automation rules added to your Odoo are removed.
  • Your contacts stay in MessageMind with their labels and fields.
  • In Odoo, your contacts, tags and orders stay as they are, including contacts MessageMind created there.
  • To connect again, click Connect and fill in the four fields. When you turn contact sync back on, contacts already in MessageMind are matched by email or phone instead of being duplicated.