@@ -92,6 +92,7 @@ export const executeChatwootBlock = (
|
||||
outgoingEdgeId: block.outgoingEdgeId,
|
||||
clientSideActions: [
|
||||
{
|
||||
type: 'chatwoot',
|
||||
chatwoot: {
|
||||
scriptToExecute: {
|
||||
content: parseVariables(typebot.variables, { fieldToParse: 'id' })(
|
||||
|
||||
@@ -17,6 +17,7 @@ export const executeGoogleAnalyticsBlock = (
|
||||
outgoingEdgeId: block.outgoingEdgeId,
|
||||
clientSideActions: [
|
||||
{
|
||||
type: 'googleAnalytics',
|
||||
googleAnalytics,
|
||||
},
|
||||
],
|
||||
|
||||
@@ -96,6 +96,7 @@ export const createChatCompletionOpenAI = async (
|
||||
return {
|
||||
clientSideActions: [
|
||||
{
|
||||
type: 'streamOpenAiChatCompletion',
|
||||
streamOpenAiChatCompletion: {
|
||||
messages: messages as {
|
||||
content?: string
|
||||
|
||||
@@ -22,6 +22,7 @@ export const executePixelBlock = (
|
||||
outgoingEdgeId: block.outgoingEdgeId,
|
||||
clientSideActions: [
|
||||
{
|
||||
type: 'pixel',
|
||||
pixel: {
|
||||
...pixel,
|
||||
pixelId: block.options.pixelId,
|
||||
|
||||
@@ -70,6 +70,7 @@ export const executeWebhookBlock = async (
|
||||
outgoingEdgeId: block.outgoingEdgeId,
|
||||
clientSideActions: [
|
||||
{
|
||||
type: 'webhookToExecute',
|
||||
webhookToExecute: parsedWebhook,
|
||||
expectsDedicatedReply: true,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user