
Configuring Treble AI as a Source
In the Sources tab, click on the “Add source” button located on the top right of your screen. Then, select the Treble AI option from the list of connectors. Click Next and you’ll be prompted to add your access.1. Add account access
You’ll need to provide the following credentials to connect to Treble AI:- API key: The token to authenticate against the API service. Check this resource for more info on how to generate the token.
- Lookback window: The number of days to look back when fetching session history. This is important to ensure new replies are fetched after the session creation date.
- Start date: The start date from which you want to start syncing records.
2. Select streams
Choose which data streams you want to sync - you can select all streams or pick specific ones that matter most to you.Tip: The stream can be found more easily by typing its name.Select the streams and click Next.
3. Configure data streams
Customize how you want your data to appear in your catalog. Select a name for each table (which will contain the fetched data) and the type of sync.- Table name: we suggest a name, but feel free to customize it. You have the option to add a prefix and make this process faster!
-
Sync Type: you can choose between INCREMENTAL and FULL_TABLE.
- Incremental: every time the extraction happens, we’ll get only the new data - which is good if, for example, you want to keep every record ever fetched.
- Full table: every time the extraction happens, we’ll get the current state of the data - which is good if, for example, you don’t want to have deleted data in your catalog.
4. Configure data source
Describe your data source for easy identification within your organization, not exceeding 140 characters. To define your Trigger, consider how often you want data to be extracted from this source. This decision usually depends on how frequently you need the new table data updated (every day, once a week, or only at specific times). Optionally, you can determine when to execute a full sync. This will complement the incremental data extractions, ensuring that your data is completely synchronized with your source every once in a while. Once you are ready, click Next to finalize the setup.5. Check your new source
You can view your new source on the Sources page. If needed, manually trigger the source extraction by clicking on the arrow button. Once executed, your data will appear in your Catalog.For you to be able to see it on your Catalog, you need at least one successful source run.
Streams and Fields
Below you’ll find all available data streams from Treble AI and their corresponding fields:Conversations
Conversations
Stream for managing conversation flows and polls.Key Fields:
id
- The conversation’s system ID (Primary Key)name
- The conversation’s name
Sessions
Sessions
Stream for tracking individual conversation sessions.Key Fields:
id
- The conversation’s unique identifier (Primary Key)poll_id
- The poll’s unique identifiercreated_at
- When the conversation was createdfinished_at
- When the conversation was completed
user
- Information about the conversation participant:country_code
- User’s country calling codecellphone
- User’s phone number
Session History
Session History
Stream for detailed message history within sessions.Key Fields:
_id
- The unique identifier for the message (auto-generated by the connector)session_id
- The conversation’s session identifiertype
- The type of messagetimestamp
- The timestamp of the message
message
- Detailed message information:type
- The message typesender
- Who sent the messagetext
- The message text contentfile_url
- URL to any attached filecreated_at
- Timestamp when message was createddelivered_at
- Timestamp when message was deliveredread_at
- Timestamp when message was readextra
- Additional message metadata