Vitally
Vitally is a customer success platform that brings together account health, conversations, notes, tasks, projects, and NPS data for B2B customer teams.
Bruin supports Vitally as a source for Ingestr assets, and you can use it to ingest customer success data into your data platform.
Configuration
Step 1: Add a connection to the .bruin.yml file
yaml
connections:
vitally:
- name: "vitally"
api_key: "sk_live_..."
subdomain: "acme"For a workspace hosted in the EU:
yaml
connections:
vitally:
- name: "vitally"
api_key: "sk_live_..."
region: "eu"api_key(required): A Vitally REST API key. A read-only key is enough.subdomain(optional): Your Vitally subdomain, theacmeinhttps://acme.vitally.io. Required for theusregion.region(optional): Where your workspace is hosted,usoreu. Defaults tous.
To create an API key, open Settings in Vitally, select Integrations under Connectors, choose Vitally REST API, turn the integration on, and create a key with the Read-only access level.
Step 2: Create an asset file for data ingestion
Create a YAML file (e.g. vitally_ingestion.yml) inside the assets folder:
yaml
name: public.vitally_accounts
type: ingestr
parameters:
source_connection: vitally
source_table: 'accounts'
destination: postgresname: The name of the asset.type: Set toingestr.source_connection: The name of the Vitally connection defined in.bruin.yml.source_table: One of the tables below.destination: The destination platform/type, for examplepostgres.
Step 3: Run asset to ingest data
bash
bruin run assets/vitally_ingestion.ymlAvailable Source Tables
| Table | Primary Key | Incremental Key | Incremental Strategy | Details |
|---|---|---|---|---|
accounts | id | updatedAt | merge | Active and churned accounts |
organizations | id | updatedAt | merge | Organizations, the parent of accounts |
users | id | updatedAt | merge | Users linked to a tracked account or organization |
conversations | id | updatedAt | merge | Conversations, without their messages |
notes | id | updatedAt | merge | Notes, including deleted ones (archivedAt is set) |
tasks | id | updatedAt | merge | Tasks, including deleted ones |
projects | id | updatedAt | merge | Projects, including deleted ones |
meetings | id | updatedAt | merge | Meetings, including deleted ones |
nps_responses | id | updatedAt | merge | NPS survey responses for accounts and organizations |
custom_object_instances | id | updatedAt | merge | Instances of every custom object, with customObjectId naming their custom object |
custom_objects | id | - | replace | Custom object definitions |
admins | id | - | replace | Vitally team members |
note_categories | id | - | replace | Note categories |
custom_fields | - | - | replace | Custom field definitions for every model |
Incremental behavior and limitations
- Vitally doesn't report hard-deleted accounts, organizations, or users, so rows deleted in Vitally stay in the destination.
- The
userstable only has users linked to a tracked account or organization. - Conversation messages can't be listed through the Vitally API, so they aren't available as a table.