> ## Documentation Index
> Fetch the complete documentation index at: https://docs.hightouch.com/llms.txt
> Use this file to discover all available pages before exploring further.

# ChatGPT Ads (OpenAI)

> Advertising in ChatGPT helps advertisers reach people as they explore ideas, evaluate options, and make decisions through relevant ads designed to fit naturally into the experience.

## Supported syncing

| Type | Description | Supported Sync Modes | API Reference |
| - | - | - | - |
| **Events** | Sync data from any source to OpenAI conversion events | Insert | [Events docs](https://developers.openai.com/ads/conversions-api) |
| **Segments** | Sync data from any source to ChatGPT (OpenAI) custom audiences | Add, Remove | [Segments docs](https://developers.openai.com/ads/custom-audiences) |

For more information about sync modes, refer to the [sync modes](https://docs.hightouch.com/syncs/types-and-modes.md#sync-modes) docs.

## Connect to OpenAI

Go to the [**Destinations** overview page](https://app.hightouch.com/destinations) and click the **Add destination** button. Select **OpenAI** and click **Continue**. You can then authenticate Hightouch to **OpenAI**.

Enter the following fields into Hightouch:

* **Pixel ID**
* **API key**
* **Ads API key**
* **Ad account ID**

## Sync configuration

Once you've set up your OpenAI destination and have a [model](https://docs.hightouch.com/getting-started/concepts.md#models) to pull data from, you can set up your sync configuration to begin syncing data. Go to the [**Syncs** overview page](https://app.hightouch.com/syncs) and click the **Add sync** button to begin. Then, select the relevant model and the OpenAI destination you want to sync to.

### Syncing events

Sync data from any source to OpenAI conversion events.

> [!WARNING]
>
> To ensure syncs send each event, your event model must use a truly unique [primary key](https://docs.hightouch.com/getting-started/concepts.md#unique-primary-key-requirement). See the [events syncs](https://docs.hightouch.com/syncs/types-and-modes.md#event-syncs) documentation for more information.

#### Record matching

You can match rows from your model to events in OpenAI on any column in your model and any field in OpenAI. Ensure the data types of the model column and OpenAI field you select match.
Refer to the [record matching docs](https://docs.hightouch.com/syncs/record-matching.md) for more information.

#### Field mapping

Hightouch lets you sync event properties via field mapping.

### Syncing segments

Sync data from any source to ChatGPT (OpenAI) custom audiences.

#### Record matching

You can match rows from your model to segments in ChatGPT Ads (OpenAI) on any column in your model and any field in ChatGPT Ads (OpenAI). Ensure the data types of the model column and ChatGPT Ads (OpenAI) field you select match.
Refer to the [record matching docs](https://docs.hightouch.com/syncs/record-matching.md) for more information.

#### Field mapping

Hightouch lets you sync segment fields via [field mapping](https://docs.hightouch.com/syncs/mapping-data.md).
You can map data from any of your model columns to the default segment fields.
Ensure your model's columns have the same data types as the fields you want to sync to.

## Tips and troubleshooting

To see the exact API requests and responses from each sync run, use the [live debugger](https://docs.hightouch.com/syncs/debugger.md). To get notified by Slack, PagerDuty, SMS, or email when a sync fails, set up [sync alerts](https://docs.hightouch.com/syncs/alerting.md). If you run into an issue this page doesn't cover, [contact support](#pylon-chat).
