2
0
Files
bot/packages/forge/blocks/segment/auth.ts
John Walsh 29ab812512 Add Segment block (#1672)
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>
2024-08-16 17:23:23 +02:00

17 lines
468 B
TypeScript

import { option, AuthDefinition } from '@typebot.io/forge'
export const auth = {
type: 'encryptedCredentials',
name: 'Segment account',
schema: option.object({
apiKey: option.string.layout({
label: 'Write Key',
isRequired: true,
inputType: 'password',
helperText: 'You can find your Write Key in your Segment source settings.',
withVariableButton: false,
isDebounceDisabled: true,
})
}),
} satisfies AuthDefinition