@@ -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,
|
||||
},
|
||||
|
||||
@@ -13,6 +13,7 @@ export const executeRedirect = (
|
||||
return {
|
||||
clientSideActions: [
|
||||
{
|
||||
type: 'redirect',
|
||||
redirect: { url: formattedUrl, isNewTab: block.options.isNewTab },
|
||||
},
|
||||
],
|
||||
|
||||
@@ -21,6 +21,7 @@ export const executeScript = (
|
||||
outgoingEdgeId: block.outgoingEdgeId,
|
||||
clientSideActions: [
|
||||
{
|
||||
type: 'scriptToExecute',
|
||||
scriptToExecute: scriptToExecute,
|
||||
},
|
||||
],
|
||||
|
||||
@@ -32,6 +32,7 @@ export const executeSetVariable = (
|
||||
outgoingEdgeId: block.outgoingEdgeId,
|
||||
clientSideActions: [
|
||||
{
|
||||
type: 'setVariable',
|
||||
setVariable: {
|
||||
scriptToExecute,
|
||||
},
|
||||
|
||||
@@ -24,6 +24,7 @@ export const executeWait = (
|
||||
parsedSecondsToWaitFor || block.options?.shouldPause
|
||||
? [
|
||||
{
|
||||
type: 'wait',
|
||||
wait: { secondsToWaitFor: parsedSecondsToWaitFor ?? 0 },
|
||||
expectsDedicatedReply: block.options.shouldPause,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user