All our modules
Now showingOpenAI / ChatGPT Ads — Product Feed & Conversion Tracking (Pixel + CAPI) Settings Live demo
Installation & User Guide

OpenAI / ChatGPT Ads for PrestaShop

Product feed, measurement pixel and Conversions API

The two cron jobs in detail

What the two jobs do

Two recurring jobs do the actual work: one delivers queued events to OpenAI, the other rebuilds and delivers your feed.

Why the module uses cron instead of doing it during a page load

Events are written to a local queue instantly while a shopper browses, and never sent to OpenAI inline. If they were sent during the page request, every add-to-cart would wait on a network round trip to OpenAI, and an OpenAI outage would slow or break your storefront. The queue keeps your shop fast and independent; cron is what drains it.

# Flush the Conversions API event queue — every 5 minutes
*/5 * * * * curl -s "https://your-shop.example/module/openaiads/cron?job=capi&token=YOUR_CRON_TOKEN"

# Rebuild and deliver the product feed — daily at 03:00
0 3 * * *   curl -s "https://your-shop.example/module/openaiads/cron?job=feed&token=YOUR_CRON_TOKEN"

Both URLs appear ready to copy, with their crontab lines, in wizard step 6 and in the Cron tab; copy them from there, because the token they carry is what stops strangers triggering your jobs and a single wrong character makes them fail. If you prefer the official PrestaShop Cron Jobs module, add the same two URLs there. A daily feed rebuild matches OpenAI's recommendation of a full snapshot at least once a day; with hosted delivery, run it at least as often as the import schedule you set in Ads Manager. The Cron tab shows when each URL was last called, so you can see at a glance that your scheduler is really running. Catalog items expire on OpenAI's side after two weeks unless the feed is refreshed, which is why the feed job matters even when your catalog rarely changes.

↑

Loading...
Back to top