# AB Tasty Destination

## Destination Info

* Accepts [Group](/docs/segment/connections/spec/group), [Identify](/docs/segment/connections/spec/identify) calls.
* Refer to it as **AB Tasty client side** in the [Integrations object.](/docs/segment/guides/filtering-data/#filtering-with-the-integrations-object)
* This integration is **partner owned.** Please reach out to the partner's support for any issues.

## AB Tasty Destination

[AB Tasty](https://www.abtasty.com) lets you build end-to-end experiences that drive growth across all digital channels. Marketing, product and engineering teams work together to deliver seamless user experiences with AB Tasty.

AB Tasty maintains this destination. For any issues with the destination, [contact the AB Tasty Support team](mailto:product@abtasty.com).

### Getting Started

1. From the Destinations catalog page in the Segment App, click **Add Destination**.
2. Search for **AB Tasty** in the Destinations Catalog, and select the **AB Tasty** destination.
3. Choose which Source should send data to the AB Tasty destination.
4. Go to the [AB Tasty settings interface](https://app2.abtasty.com/settings/integration/api-configuration) and navigate to **Integrations > API Key**.
5. Click **Generate API Key** (if the API key doesn't already exist) and copy the API key.
6. Enter the API key in the AB Tasty destination settings in Segment.

### Supported methods

AB Tasty supports the following methods, as specified in the [Segment Spec](/docs/segment/connections/spec).

#### Identify

Send [Identify](/docs/segment/connections/spec/identify) calls to AB Tasty webhook. For example:

```js
analytics.identify('userId123', {
  email: 'john.doe@example.com',
  trait1: 1,
  trait2: "test",
  trait3: true
  },
});
```

Segment sends Identify calls to AB Tasty as an `identify` event. The AB Tasty data engine then ingests the different traits associated to the identified user.

Traits received are then available in the [AB Tasty segment builder](https://abtasty.zendesk.com).

#### Group

Send [Group](/docs/segment/connections/spec/group) calls to AB Tasty webhook. The AB Tasty data engine then ingests the different traits associated to the identified group. For example:

```js
analytics.group("0e8c78ea9d97a7b8185e8632", {
  name: "Initech",
  industry: "Technology",
  employees: 329,
  plan: "enterprise",
  "total billed": 830,
});
```

Segment sends Group calls to AB Tasty as a `group` event. The AB Tasty data engine then ingests the different traits associated to the identified user.

Traits received are then available in the [AB Tasty segment builder](https://abtasty.zendesk.com).

## Engage

You can send computed traits and audiences generated using [Engage](/docs/segment/engage) to this destination as a **user property**. To learn more about Engage, schedule a [demo](https://segment.com/contact/demo).

For user-property destinations, an [identify](/docs/segment/connections/spec/identify/) call is sent to the destination for each user being added and removed. The property name is the snake\_cased version of the audience name, with a true/false value to indicate membership. For example, when a user first completes an order in the last 30 days, Engage sends an Identify call with the property `order_completed_last_30days: true`. When the user no longer satisfies this condition (for example, it's been more than 30 days since their last order), Engage sets that value to `false`.

When you first create an audience, Engage sends an Identify call for every user in that audience. Later audience syncs only send updates for users whose membership has changed since the last sync.

> \[!NOTE]
>
> Real-time audience syncs to AB Tasty  may take six or more hours for the initial sync to complete. Upon completion, a sync frequency of two to three hours is expected.

## Settings

Segment lets you change these destination settings from the Segment app without having to touch any code.

| Field   | Description                                                          | Required | Type   |
| ------- | -------------------------------------------------------------------- | -------- | ------ |
| API Key | You can find the API Key on the integration setting page of AB Tasty | Yes      | string |
