CAPI & Feed for OpenAI Ads: help

This app connects your Shopify store to OpenAI Ads (ads in ChatGPT) in two ways:

You can use either one alone, or both.

Before you start: what you need from OpenAI Ads Manager

What Where to find it in Ads Manager What the app uses it for
Pixel ID Tools → Conversions → Data Source Tells OpenAI which ad account your events belong to
Conversions API key Tools → Conversions → Conversion keys Lets the app send events to that account
A feed (for the product feed) Tools → Feeds → Create Feed Where OpenAI picks up your catalog: by Hosted URL or by SFTP

The app needs no OpenAI password and no access to your ad account beyond these.

Step 1: Install the app

Install it from the Shopify App Store and approve the permissions it asks for. Each one is explained under Permissions below.

The app opens on its Home page, which shows the three setup steps below and where each stands, with a button to each. Select the app's name in the Shopify menu to come back to it.

Nothing is sent anywhere until you enter your Pixel ID and key in Step 2. Right after installing, the app starts reading your catalog. This takes a few minutes, and the Product feed page shows its progress.

Step 2: Settings, for conversion tracking

  1. Open the app and go to Settings.
  2. Under OpenAI pixel and Conversions API, paste your Pixel ID and your Conversions API key, then save.
  3. Click Test connection. The app asks OpenAI to check a sample event without recording it, so this is safe on a live store. A green result means OpenAI accepts your Pixel ID and key.

Once saved, the app connects its storefront pixel to your store automatically.

  1. In OpenAI Ads Manager, attach a conversion event (such as purchases) to your campaign. Until an active campaign has one, Ads Manager reports "No active campaigns use conversion events", and OpenAI does not use your conversions to decide where your ads run.

The saved key is stored encrypted and never shown again in full. To replace it, paste a new one and save.

Purchases without consent

Shopify still reports the orders of visitors who did not accept marketing cookies, or whose browser blocks tracking. A purchase counts as consented when the visitor allowed marketing at checkout: the app takes that from the order's confirmation page, or, when that page does not load, from when the checkout started. Under Purchases without consent, choose what happens to the others:

Step 3: The product feed

Check the feed's settings

Open Product feed and look through Feed settings. Most of them are filled in from your store:

Setting What it is
Seller name The store name shoppers see next to your products. It is also the brand of products that have no vendor.
Store address Your storefront's address.
Return policy, Privacy policy, Terms of service Links to your policy pages. OpenAI asks for a return policy. Shopify publishes the policies you write in Settings › Policies.
Countries you sell to Two-letter country codes, such as US, CA, GB: the markets your products are advertised in.
Store country The country your business operates from.
Item titles How each variant's title reads: the product and the variant (Trail Runner - Black / 10), the product and each option named (Trail Runner - Color: Black, Size: 10), or the product only.
Out-of-stock products Keep them all (listed as out of stock, or as backorder when you still sell them), leave them out but keep the ones you still sell, or leave them all out.
Send SKUs as manufacturer part numbers (MPN) Only when your SKUs are the manufacturers' own part numbers. Valid barcodes (GTINs) are always sent.

Save, and the feed is rebuilt about a minute later.

Connect the feed in Ads Manager

Pick one of the two ways.

Hosted URL, where OpenAI fetches the file. Simplest.

  1. On the Product feed page, under Feed address, click Copy address with the password.
  2. In Ads Manager, go to Tools → Feeds → Create Feed → Hosted URL, paste the address, and choose how often OpenAI should fetch it.
  3. Alternatively, paste the plain Address and enter the Password in Ads Manager's HTTP Basic fields; any user name works.

Keep the address private: anyone who has it can download your feed. The feed holds only what your product pages already show. New password replaces the password at once. The old one, and the address with it, stop working, so enter the new ones in Ads Manager.

Upload by SFTP, where the app sends the file.

  1. In Ads Manager, open your feed's SFTP connection and choose password sign-in. Ads Manager shows a host, port, user name and password.
  2. On the Product feed page, under Upload by SFTP, enter them. The host is always sftp.commerce.openai.com, and the port is 22 or 443, as Ads Manager shows it.
  3. Save. The app uploads the file at once, and again after every change.

The app only connects to OpenAI's SFTP server, and it checks the server's identity before it sends your password.

What goes into the feed

One item for every variant of every active product that is available on your Online Store, with its title, description, brand, page address, images, price, sale price, availability, barcode, weight and options.

A variant is left out when OpenAI could not use it. Under Left out of the feed, the page shows how many and why, with View them on each row to list them, and Products to fix names the products you can correct:

Reason What to do
Draft or archived Only active products are advertised.
Not on your online store Make the product available on the Online Store sales channel.
Out of stock Left out because of your setting.
No image Add an image: OpenAI requires one.
No price Give the variant a price above zero.
No title Give the product a title.
Unusable page address The product's page address is not one OpenAI can open.
No brand Set the product's vendor, or a seller name.
Your product choices Left out by your choices under Which products.

Choose which products go in

Under Which products, you can narrow the feed. Leave a choice on its first option ("All …") and it restricts nothing.

A product must pass every choice you make. Under each choice, the page shows how many items it left out at the latest update. Save, and the feed is rebuilt within a few minutes.

See what is left out, and why

View them in any row under Left out of the feed, or View next to a choice's count under Which products, lists the items left out at the latest update for that reason. Each item shows its picture, title, item ID, price, stock and why it was left out, 50 to a page. Search by title, item ID, vendor, product type or tag, or choose another reason, or every reason at once. The list is made again with every feed update.

See the items in the feed

View the items in the feed lists what OpenAI fetches. Each item shows its picture, title, item ID, price and availability, 50 to a page. Search by title, item ID, brand, GTIN or MPN, and open an item's title to edit its product in Shopify.

Products that leave the feed

OpenAI does not treat a product that is missing from the file as removed: it can go on showing it as it last saw it, in stock and at the old price. So when an item leaves your feed (your choices under Which products now leave it out, it sold out while out-of-stock products are left out, or the product was deleted, archived or taken off the Online Store), the app keeps it in the file for 3 days, marked out of stock, and then removes it. OpenAI stops showing it once it reads the file. An item that comes back within the 3 days is listed as usual again.

The Product feed page says how many items are in the file this way. They are not counted among the feed's items or listed under View the items in the feed, so for those days the downloaded file holds a few more items than the page shows.

Check the feed's quality

Feed quality on the Product feed page shows where the items in your feed could say more about the product. These items are in the feed all the same.

Check What to do
No GTIN or MPN OpenAI asks for a barcode (GTIN) or a manufacturer part number. Add a valid barcode to the variant in Shopify. If your SKUs are the manufacturers' part numbers, turn on Send SKUs as manufacturer part numbers (MPN) under Feed settings. A barcode that is not a valid GTIN is not sent.
No description The product has no description, so its title is sent in its place. Write one.
Short description Under 50 characters. A fuller description tells OpenAI more about the product.
No product category Optional for OpenAI. Set the product's category in Shopify.
Only one image Optional for OpenAI. More images show the product from other sides.
No return policy link OpenAI asks for one. Add it under Feed settings.

View them on a row lists the items that do not pass that check. On the list, Show switches between the checks, and To improve names what each item is missing.

Feed history and download

Feed history lists each time the feed file changed, was uploaded to OpenAI by SFTP, or could not be built or uploaded, with the number of items, the file's size, or the reason. A check that leaves the file as it was is not listed. Entries are kept for 30 days, the latest 200.

Download the feed file saves the file OpenAI fetches, products.jsonl.gz, to your computer. The app keeps only the current file, not earlier ones.

Your catalog stays current on its own. Product edits, stock changes and deletions reach the feed within minutes. The whole catalog is also read again once a day, as a safety net, and Sync now reads it at once.

Step 4: Diagnostics

Diagnostics checks the whole setup:

Check Green means
Settings Your Pixel ID and key are saved.
OpenAI OpenAI accepts your events. If it refuses your Pixel ID or key, events wait up to 7 days while you correct them.
Delivery Events go out within about a minute. A failed delivery is retried for up to 7 days.
Customer details Shopify shares the customer's email or phone on your orders (see Troubleshooting).
Storefront pixel The pixel is connected to your store.

Below the checks, Last 24 hours counts your events by status, and Recent events lists the latest ones. Each shows its status, its source (storefront, Shopify order, or both) and, for anything OpenAI refused, OpenAI's reason.

What is sent to OpenAI

Your store OpenAI event From
A page view page_viewed the storefront pixel
A product page view contents_viewed the storefront pixel
An add-to-cart items_added the storefront pixel
A started checkout checkout_started the storefront pixel
A purchase order_created Shopify's order, joined with what the pixel saw of the visit
A contact-form message or newsletter signup lead_created the storefront pixel, once Shopify has accepted the form

Every event goes to OpenAI from our server, not from the shopper's browser.

Purchases are reported from Shopify's own order data, so an ad blocker cannot stop them. Online-store orders are reported. Point-of-sale, draft and voided orders are not, nor test orders, except on a development store, where test orders are the only kind: there, a test purchase shows the whole setup working.

Leads carry only the form's type, never anything the visitor typed.

The ad click. When a shopper arrives from an OpenAI ad, the app keeps OpenAI's click reference for 30 days. Later purchases are then attributed to that click.

Customer matching. With the shopper's marketing consent, a purchase also carries the customer's email, phone and customer ID, each hashed (SHA-256), plus the billing country, region, city and postal code. OpenAI uses them to match the purchase to someone who saw the ad. Names and street addresses are never read.

For a shopper who is signed in to your store, their hashed email, phone and customer ID also go with their page views, product views, add-to-carts and started checkouts. A started checkout carries what it holds when it opens. For a guest that is usually only the country, because Shopify reports the checkout before an email is typed. So a visitor who is not signed in stays anonymous until the purchase, and OpenAI's "email coverage" of your events is always well below 100%.

Consent and privacy

The app follows your store's customer privacy settings and cookie banner:

The full details are in our privacy policy.

Troubleshooting

Diagnostics says "OpenAI refused your Pixel ID or key". Copy both again from Ads Manager, paste them in Settings, save and Test connection. Events recorded in the meantime are kept and sent once OpenAI accepts them, for up to 7 days.

"Storefront pixel not connected" or "needs reconnecting". Open Settings and save once. This reconnects the pixel.

Few or no storefront events. The pixel runs only for visitors who accept marketing cookies, so a store with a consent banner sees events only from visitors who accepted it. Browsers with ad blockers send no storefront events. Their purchases are still reported from Shopify's order.

"Purchases are sent without customer details". Shopify shares a customer's email, phone and address only with apps it has approved for protected customer data. Customers who didn't give consent are never matched. Purchases are still reported; they just can't be matched to a person as often.

Events arrive, but a conversion is missing in Ads Manager. Check Conversions → Event Stream in Ads Manager. Ads Manager counts a conversion only for event types you have set up there, even when the events arrive.

The feed imported, but Ads Manager shows zero products. Usually OpenAI could not load your product images: a firewall or bot protection may block them. Image addresses must answer to OpenAI's crawler, not only to your browser.

The upload by SFTP fails. The Product feed page states the reason. Check the port, user name and password against Ads Manager. A saved password is kept only while the host, port and user name stay the same: change any of them and type the password again. OpenAI keeps your last good file when an upload fails.

Ads Manager cannot fetch the hosted URL. Copy the address again from the Product feed page. If you used the plain address, check the password in Ads Manager's HTTP Basic fields.

Permissions

Access Why the app needs it
Storefront pixel (write_pixels) To connect the pixel that records storefront events.
Customer events (read_customer_events) To receive Shopify's storefront events through that pixel.
Orders (read_orders) To report purchases from Shopify's own order data, with customer details for matching when the shopper consented.
Products (read_products) To build the product feed and keep it current.

Uninstalling

Uninstalling disconnects the storefront pixel and stops all sending. 48 hours later, when Shopify asks for it, everything the app stored about your store is erased: events, settings, keys, the catalog copy and the feed files. Feeds already imported into Ads Manager stay there until they expire or you delete them.

Support

Email support@shopifychamps.com. Please include: