Added support for Twilio Segment New Segment Block added to Forge. Includes the following: - Credentials - Identify User, including Traits - Alias User - Track Event, including Properties - Track Bot View ( Page ), including Properties - Generate UUID for User IDs Tested integration with Segment, verified working. Uses Segment's NodeJS analytics library to support non-browser based platforms, such as WhatsApp --------- Co-authored-by: John Walsh <john@famkit.com> Co-authored-by: Baptiste Arnaud <baptiste.arnaud95@gmail.com>
17 lines
500 B
TypeScript
17 lines
500 B
TypeScript
import { createBlock } from '@typebot.io/forge'
|
|
import { SegmentLogo } from './logo'
|
|
import { auth } from './auth'
|
|
import { identify } from './actions/identify'
|
|
import { trackEvent } from './actions/trackEvent'
|
|
import { alias } from './actions/alias'
|
|
import { trackPage } from './actions/trackPage'
|
|
|
|
export const segmentBlock = createBlock({
|
|
id: 'segment',
|
|
name: 'Segment',
|
|
tags: ['events', 'analytics'],
|
|
LightLogo: SegmentLogo,
|
|
auth,
|
|
actions: [alias, identify, trackPage, trackEvent]
|
|
})
|