# Deway AI Source

## Source Info

* The Deway AI Source is an **Event Cloud** source. This means that it sends data as events, which are behaviors or occurrences tied to a user and a point in time. Data from these sources can be loaded into your Segment warehouses, and **also** sent to Segment streaming destinations. [Learn more about cloud sources.](/docs/segment/connections/sources#cloud-app-sources)
* This source is in **Beta**

[Deway AI](https://deway.ai/?utm_source=segmentio\&utm_medium=docs\&utm_campaign=partners) (formerly known as Rise AI) provides AI-powered user guidance and automation, helping users accomplish their jobs-to-be-done with intelligent walkthroughs and contextual assistance.

This is an [Event Cloud Source](/docs/segment/connections/sources#event-cloud-sources) which can not only export data into your Segment warehouse, but can also federate the exported data into your other enabled Segment Destinations.

Deway AI maintains this source. For any issues with the source, [contact the Deway AI support team](mailto:support@deway.ai).

## Getting started

1. From your workspace's [Sources catalog page](https://app.segment.com/goto-my-workspace/sources/catalog) click **Add Source**.
2. Search for *Deway AI* in the Sources Catalog, select **Deway AI**, and click **Add Source**.
3. Give the source a name, then configure any other settings.
   * The name is used as a label in the Segment app, and Segment creates a related schema name in your warehouse. The name can be anything, but we recommend using something that reflects the source itself and distinguishes amongst your environments (for example, `DewayAI_Prod`, `DewayAI_Staging`, or `DewayAI_Dev`).
4. Click **Add Source** to save your settings.
5. Copy the Write key from the Segment UI.
6. Log in to your Deway AI account, then navigate to **Settings > Integrations > Segment Integration** and paste the key to connect.

## Stream

Deway AI uses the stream source component to send Segment event data. It uses a server-side Track method to send data to Segment. These events are then available in any destination that accepts server-side events, and available in a schema in your data warehouse, so you can query using SQL.

Deway AI includes the `userId` when available, along with a unique `tenant_id` for tenant isolation to ensure data privacy and proper attribution across different workspaces.

## Events

The following table lists events that Deway AI sends to Segment. These events appear as tables in your warehouse, and as regular events in other destinations. Deway AI includes the `userId` if available.

| Event name           | Description                                                       |
| -------------------- | ----------------------------------------------------------------- |
| Walkthrough Progress | User progress through AI-guided walkthroughs and onboarding flows |
| Chats                | AI chat session creation and interactions                         |

## Event properties

The following table list the properties included in the events listed in the [Events table](#events).

| Property name                | Description                                                                          |
| ---------------------------- | ------------------------------------------------------------------------------------ |
| `batch_id`                   | Unique identifier for the event batch                                                |
| `chat_id`                    | Unique identifier for the chat session                                               |
| `environment`                | Environment where the event occurred (for example, production or staging)            |
| `event_timestamp`            | Timestamp when the event occurred                                                    |
| `tenant_id`                  | Unique identifier for the tenant/workspace                                           |
| `step_index`                 | Position of the current step in the walkthrough (walkthrough-progress only)          |
| `step_title`                 | Title of the current walkthrough step (walkthrough-progress only)                    |
| `fulfillment_action`         | Action taken to fulfill the step (walkthrough-progress only)                         |
| `walkthrough_job_to_be_done` | The job-to-be-done that the walkthrough helps accomplish (walkthrough-progress only) |
| `chat_type`                  | Type of chat interaction (chats only)                                                |

## Adding destinations

Now that your source is set up, you can connect it to Destinations.

Log in to your downstream tools and check to see that your events appear as expected, and that they contain all of the properties you expect. If your events and properties don't appear, check the [Event Delivery](/docs/segment/connections/event-delivery/) tool, and refer to the relevant destination docs for each tool for troubleshooting.

If there are any issues with how the events are arriving to Segment, [contact the Deway AI support team](mailto:support@deway.ai).
