Set Up Real-Time Data Feed Max on Odoo
Expose your Odoo eCommerce catalog or any custom model as a JSON feed
What Your Feed Should Look Like
Real-Time Data Feed Max accepts any public URL returning JSON or plain text. The AI reads whatever you give it — products, services, bookable slots, property listings, menus, opening hours, anything — and uses it to answer visitor questions. There is no required shape or field name.
The one exception is Dynamic Product Cards. If you want matching items to render as visual cards in the chat, use these specific field names: name, price, description, image_url, button_link, in_stock.
Example — products (triggers Dynamic Product Cards)
{
"products": [
{
"name": "Wireless Headphones Pro",
"price": "$149.99",
"description": "Premium over-ear wireless headphones with ANC.",
"image_url": "https://example.com/images/headphones.jpg",
"button_link": "https://example.com/products/headphones",
"in_stock": true
}
]
}
Example — services (any shape works)
{
"services": [
{
"service": "Deep tissue massage",
"duration_minutes": 60,
"price_from": "$95",
"therapists_available": ["Anna", "Mark"],
"booking_link": "https://example.com/book/deep-tissue"
},
{
"service": "Haircut & style",
"duration_minutes": 45,
"price_from": "$55",
"booking_link": "https://example.com/book/haircut"
}
]
}
Example — plain text (works too)
Opening hours: Mon-Fri 9-6, Sat 10-4, closed Sunday. Delivery: Free over $30, minimum order $15, within 5 miles. Lunch specials (weekdays only): - Margherita pizza $12 - Caesar salad $9 - Soup of the day $7
Rule of thumb: Use descriptive field names the AI can interpret (service, duration, price, location, etc.). If Dynamic Product Cards make sense for your business, follow the exact field names above. If they don't, use whatever shape fits your data — the AI still searches it and answers questions correctly.
How Odoo Differs
Odoo's built-in XML-RPC and JSON-RPC APIs require authentication (database + username + password). For a public feed, either add a small custom module that exposes a public HTTP controller, or call the RPC API from a server-side proxy.
Option 1 — Custom Public Controller (recommended)
The cleanest approach: add a small Odoo module that registers a public HTTP route returning your products as JSON. Runs natively inside Odoo, no external services needed.
# my_module/controllers/aifeed.py
from odoo import http
from odoo.http import request
import json
class AIFeedController(http.Controller):
@http.route('/ai-feed', type='http', auth='public', website=True)
def ai_feed(self, **kwargs):
products = request.env['product.template'].sudo().search([
('sale_ok', '=', True),
('is_published', '=', True),
], limit=5000)
base_url = request.httprequest.host_url.rstrip('/')
out = []
for p in products:
out.append({
'name': p.name,
'price': f"{p.currency_id.symbol}{p.list_price:.2f}",
'description': p.description_sale or '',
'image_url': f"{base_url}/web/image/product.template/{p.id}/image_512",
'button_link': f"{base_url}/shop/product/{p.id}",
'in_stock': p.qty_available > 0 if hasattr(p, 'qty_available') else True,
})
return request.make_response(
json.dumps({'products': out}),
headers=[('Content-Type', 'application/json')]
)
Feed URL: https://your-site.com/ai-feed
Option 2 — XML-RPC Proxy (no Odoo development)
If you can't add custom modules (e.g. Odoo.sh restrictions, managed SaaS), call the XML-RPC API from an external script with a dedicated API user:
# Python proxy example
import xmlrpc.client
import json
URL = 'https://your-site.com'
DB, USER, PASS = 'mydb', 'api@example.com', 'password'
common = xmlrpc.client.ServerProxy(f'{URL}/xmlrpc/2/common')
uid = common.authenticate(DB, USER, PASS, {})
models = xmlrpc.client.ServerProxy(f'{URL}/xmlrpc/2/object')
products = models.execute_kw(DB, uid, PASS,
'product.template', 'search_read',
[[('sale_ok', '=', True), ('is_published', '=', True)]],
{'fields': ['name', 'list_price', 'description_sale', 'id'], 'limit': 5000})
out = [{
'name': p['name'],
'price': f"${p['list_price']:.2f}",
'description': p['description_sale'] or '',
'button_link': f"{URL}/shop/product/{p['id']}",
} for p in products]
print(json.dumps({'products': out}))
טיפ: Create a dedicated API-only user in Odoo (Settings → Users) with read-only access to Products. Use this user's credentials in your proxy — never your admin credentials.
פתרון בעיות
Your site is in maintenance, staging, or password-protected mode. Real-Time Data Feed Max needs a fully public URL.
Open the URL in a private browser window. If you don't see JSON, the URL is wrong or the endpoint is down. If you see JSON but we still fail, the response may be missing a Content-Type: application/json header or exceeding the 10,000,000 character limit.
Dynamic Product Cards require specific field names (name, price, image_url, button_link, in_stock). If your platform uses different names, reshape the response in a small custom script before exposing it.
The feed auto-refreshes every 24 hours. For immediate updates, click Refresh Now in Real-Time Data Feed Max. For live fields (price, stock), the AI pulls fresh data on every message — so the 24h cycle only affects which items are known, not their current state.
Real-Time Data Feed Max accepts up to 10,000,000 characters (~25,000 items). If you exceed that, trim fields (skip long HTML descriptions), split your catalog, or use the standard Real-Time Data Feed alongside for secondary data.
Still stuck? Start with the simplest option for your platform and verify the URL works in a browser before pasting it into Real-Time Data Feed Max. You can always upgrade to a more advanced option later — only the URL field changes on our side.