@botonic/plugin-flow-builder
Version:
Botonic plugin for **Hubtype Flow Builder**: run and bridge flow-driven logic from bots on the **current** line.
1,549 lines (1,548 loc) • 80.4 kB
JavaScript
export const basicFlow = {
version: 'draft',
name: 'Test data',
comments: null,
published_by: null,
published_on: null,
hash: '1086dc30486e91e07c264b09dcb2ae4151d534a3',
default_locale_code: 'en',
locales: ['en'],
translated_locales: [],
start_node_id: '019adf85-a9a6-742d-a403-da338c45449a',
ai_model_id: null,
is_knowledge_base_active: false,
is_ai_agent_active: true,
nodes: [
{
id: '019adfc9-2be7-72dd-8242-d929b3743ad9',
type: 'url',
content: {
url: 'https://dragonball.fandom.com/wiki/Goku',
},
},
{
id: '019adfc9-fc3c-7619-8916-ac2e94cd36ff',
type: 'url',
content: {
url: 'https://dragonball.fandom.com/wiki/Vegeta',
},
},
{
id: '019adf9f-b78c-726b-974d-7918f77ffd00',
type: 'url',
content: {
url: 'https://www.hubtype.com',
},
},
{
id: '019ae3e2-91e5-72ce-a753-728997eb69cf',
type: 'payload',
content: {
payload: 'set-extra-data',
},
},
{
id: 'f3931bce-7de3-5c7a-8287-81f0292ee4f3',
code: 'Fallback',
is_code_ai_generated: false,
meta: {
x: 300.0,
y: 0.0,
},
follow_up: null,
target: null,
flow_id: '03bafba6-c0fa-5449-9d42-bd98b44fe370',
is_meaningful: false,
ai_translated_locales: [],
type: 'fallback',
content: {
first_message: {
id: '019a90f2-a50a-745c-a00f-3e6fb52d143b',
type: 'text',
},
second_message: {
id: '019aeee6-c9fc-741b-a962-6bb509f740ec',
type: 'text',
},
is_knowledge_base_active: false,
knowledge_base_followup: null,
},
},
{
id: '019a90f2-a50a-745c-a00f-3e6fb52d143b',
code: 'fallback-first-msg',
is_code_ai_generated: false,
meta: {
x: 775.0,
y: 34.750000000000014,
},
follow_up: null,
target: null,
flow_id: '03bafba6-c0fa-5449-9d42-bd98b44fe370',
is_meaningful: false,
ai_translated_locales: [],
type: 'text',
content: {
text: [
{
message: 'Fallback first message',
locale: 'en',
},
],
buttons_style: 'button',
buttons: [],
},
},
{
id: '019adf85-a9a6-742d-a403-da338c45449a',
code: 'welcome-msg',
is_code_ai_generated: false,
meta: {
x: 424.26509219772277,
y: -52.981850779366866,
},
follow_up: null,
target: null,
flow_id: '8d527e7d-ea6d-5422-b810-5b4c8be7657b',
is_meaningful: false,
ai_translated_locales: [],
type: 'text',
content: {
text: [
{
message: 'Welcome',
locale: 'en',
},
],
buttons_style: 'button',
buttons: [],
},
},
{
id: '019adf85-a9a6-742d-a403-de7abc65dfd8',
code: 'text-after-button-msg',
is_code_ai_generated: false,
meta: {
x: 1043.7455467517382,
y: -1129.489675939924,
},
follow_up: null,
target: null,
flow_id: '8d527e7d-ea6d-5422-b810-5b4c8be7657b',
is_meaningful: false,
ai_translated_locales: [],
type: 'text',
content: {
text: [
{
message: 'text after button',
locale: 'en',
},
],
buttons_style: 'button',
buttons: [],
},
},
{
id: '019adf85-a9a6-742d-a403-e372e64f45bd',
code: '',
is_code_ai_generated: false,
meta: {
x: 143.03571460518992,
y: -219.23185077936688,
},
follow_up: null,
target: {
id: '019adf85-a9a6-742d-a403-da338c45449a',
type: 'text',
},
flow_id: '8d527e7d-ea6d-5422-b810-5b4c8be7657b',
is_meaningful: false,
ai_translated_locales: [],
type: 'keyword',
content: {
title: [],
keywords: [
{
values: ['start'],
locale: 'en',
},
],
},
},
{
id: '019adf85-a9a6-742d-a403-e4852b8dd93c',
code: '',
is_code_ai_generated: false,
meta: {
x: -47.60542434394762,
y: -1190.1359337226643,
},
follow_up: null,
target: {
id: '019adfb7-449f-7447-9948-8fc213f97ba2',
type: 'function',
},
flow_id: '8d527e7d-ea6d-5422-b810-5b4c8be7657b',
is_meaningful: false,
ai_translated_locales: [],
type: 'keyword',
content: {
title: [],
keywords: [
{
values: ['bmsg'],
locale: 'en',
},
],
},
},
{
id: '019adf85-a9a6-742d-a403-e9660a179d03',
code: 'text-with-button-msg-whatsapp',
is_code_ai_generated: false,
meta: {
x: 647.2200363464884,
y: -1042.1060780267599,
},
follow_up: null,
target: null,
flow_id: '8d527e7d-ea6d-5422-b810-5b4c8be7657b',
is_meaningful: false,
ai_translated_locales: [],
type: 'text',
content: {
text: [
{
message: 'Text with buttons',
locale: 'en',
},
],
buttons_style: 'button',
buttons: [
{
id: '019adf85-a9a6-742d-a403-ed33357ccfd3',
text: [
{
message: 'button postback',
locale: 'en',
},
],
url: [],
payload: [],
target: {
id: '019adf85-a9a6-742d-a403-de7abc65dfd8',
type: 'text',
},
hidden: [],
},
{
id: '019adf85-a9a6-742d-a403-f0148662bf57',
text: [
{
message: 'button url',
locale: 'en',
},
],
url: [
{
id: '019adf9f-b78c-726b-974d-7918f77ffd00',
locale: 'en',
},
],
payload: [],
target: null,
hidden: [],
},
],
},
},
{
id: '019adf85-a9a6-742d-a403-faf17d83f9c0',
code: 'image-msg',
is_code_ai_generated: false,
meta: {
x: 559.4160284110671,
y: 242.40296628674986,
},
follow_up: null,
target: null,
flow_id: '8d527e7d-ea6d-5422-b810-5b4c8be7657b',
is_meaningful: false,
ai_translated_locales: [],
type: 'image',
content: {
image: [
{
id: '019adf85-a9a6-742d-a403-ffaeeaf0265c',
file: 'https://medias.dev.flowbuilder.dev.hubtype.com/assets/media_files/fdacb5ad-8b0f-4aae-aa1e-03fcd75fedaa/019a8202-f9c1-7732-8598-30fe08386712/Vermut.jpeg',
locale: 'en',
},
],
},
},
{
id: '019adf85-a9a6-742d-a404-006aa8c16054',
code: '',
is_code_ai_generated: false,
meta: {
x: 266.5859193306885,
y: 228.42017009430958,
},
follow_up: null,
target: {
id: '019adf85-a9a6-742d-a403-faf17d83f9c0',
type: 'image',
},
flow_id: '8d527e7d-ea6d-5422-b810-5b4c8be7657b',
is_meaningful: false,
ai_translated_locales: [],
type: 'keyword',
content: {
title: [],
keywords: [
{
values: ['imagemsg'],
locale: 'en',
},
],
},
},
{
id: '019adf85-a9a6-742d-a404-074f58db7f80',
code: '',
is_code_ai_generated: false,
meta: {
x: -672.8341282120373,
y: 739.354145952009,
},
follow_up: null,
target: {
id: '019adf85-a9a6-742d-a404-0b123be9bbd5',
type: 'function',
},
flow_id: '8d527e7d-ea6d-5422-b810-5b4c8be7657b',
is_meaningful: false,
ai_translated_locales: [],
type: 'keyword',
content: {
title: [],
keywords: [
{
values: ['country'],
locale: 'en',
},
],
},
},
{
id: '019adf85-a9a6-742d-a404-0b123be9bbd5',
code: 'COUNTRY-CONDITION_abd',
is_code_ai_generated: true,
meta: {
x: -306.832032421525,
y: 850.6659802085287,
},
follow_up: null,
target: null,
flow_id: '8d527e7d-ea6d-5422-b810-5b4c8be7657b',
is_meaningful: false,
ai_translated_locales: [],
type: 'function',
content: {
action: 'check-country',
arguments: [],
result_mapping: [
{
result: 'default',
target: {
id: '019adf85-a9a6-742d-a404-142657d06aa8',
type: 'text',
},
},
{
result: 'ES',
target: {
id: '019adf85-a9a6-742d-a404-0f3e3126e395',
type: 'text',
},
},
{
result: 'AD',
target: {
id: '019adf85-a9a6-742d-a404-127bb5d90648',
type: 'text',
},
},
],
},
},
{
id: '019adf85-a9a6-742d-a404-0f3e3126e395',
code: 'SPAIN',
is_code_ai_generated: true,
meta: {
x: 85.20935131777605,
y: 782.9609190804658,
},
follow_up: null,
target: null,
flow_id: '8d527e7d-ea6d-5422-b810-5b4c8be7657b',
is_meaningful: false,
ai_translated_locales: [],
type: 'text',
content: {
text: [
{
message: 'Spain',
locale: 'en',
},
],
buttons_style: 'button',
buttons: [],
},
},
{
id: '019adf85-a9a6-742d-a404-127bb5d90648',
code: 'ANDORRA',
is_code_ai_generated: true,
meta: {
x: 72.0966720116204,
y: 944.6839638563847,
},
follow_up: null,
target: null,
flow_id: '8d527e7d-ea6d-5422-b810-5b4c8be7657b',
is_meaningful: false,
ai_translated_locales: [],
type: 'text',
content: {
text: [
{
message: 'Andorra',
locale: 'en',
},
],
buttons_style: 'button',
buttons: [],
},
},
{
id: '019adf85-a9a6-742d-a404-142657d06aa8',
code: 'OTHER_COUNTRY',
is_code_ai_generated: true,
meta: {
x: 80.83845821572413,
y: 1117.3342413874336,
},
follow_up: null,
target: null,
flow_id: '8d527e7d-ea6d-5422-b810-5b4c8be7657b',
is_meaningful: false,
ai_translated_locales: [],
type: 'text',
content: {
text: [
{
message: 'Other country',
locale: 'en',
},
],
buttons_style: 'button',
buttons: [],
},
},
{
id: '019adf85-a9a6-742d-a404-1916432adac7',
code: '',
is_code_ai_generated: false,
meta: {
x: 563.8221459924562,
y: 918.4586052440736,
},
follow_up: null,
target: {
id: '019adf85-a9a6-742d-a404-1e9f360dbba8',
type: 'function',
},
flow_id: '8d527e7d-ea6d-5422-b810-5b4c8be7657b',
is_meaningful: false,
ai_translated_locales: [],
type: 'keyword',
content: {
title: [],
keywords: [
{
values: ['channel'],
locale: 'en',
},
],
},
},
{
id: '019adf85-a9a6-742d-a404-1e9f360dbba8',
code: 'CHANNEL_CONDITIONAL',
is_code_ai_generated: false,
meta: {
x: 913.4935941566057,
y: 802.629938039699,
},
follow_up: null,
target: null,
flow_id: '8d527e7d-ea6d-5422-b810-5b4c8be7657b',
is_meaningful: false,
ai_translated_locales: [],
type: 'function',
content: {
action: 'get-channel-type',
arguments: [],
result_mapping: [
{
result: 'default',
target: {
id: '019adf85-a9a6-742d-a404-2a917bf47bbe',
type: 'text',
},
},
{
result: 'whatsapp',
target: {
id: '019adf85-a9a6-742d-a404-2340de10e210',
type: 'text',
},
},
{
result: 'webchat',
target: {
id: '019adf85-a9a6-742d-a404-273b32bfde8c',
type: 'text',
},
},
],
},
},
{
id: '019adf85-a9a6-742d-a404-2340de10e210',
code: 'WHATSAPP_IDENTIFIER',
is_code_ai_generated: true,
meta: {
x: 1236.9396837084446,
y: 796.0735983866211,
},
follow_up: null,
target: null,
flow_id: '8d527e7d-ea6d-5422-b810-5b4c8be7657b',
is_meaningful: false,
ai_translated_locales: [],
type: 'text',
content: {
text: [
{
message: 'Whatsapp',
locale: 'en',
},
],
buttons_style: 'button',
buttons: [],
},
},
{
id: '019adf85-a9a6-742d-a404-273b32bfde8c',
code: 'WEBCHAT',
is_code_ai_generated: true,
meta: {
x: 1239.12513025947,
y: 903.1604793868921,
},
follow_up: null,
target: null,
flow_id: '8d527e7d-ea6d-5422-b810-5b4c8be7657b',
is_meaningful: false,
ai_translated_locales: [],
type: 'text',
content: {
text: [
{
message: 'Webchat',
locale: 'en',
},
],
buttons_style: 'button',
buttons: [],
},
},
{
id: '019adf85-a9a6-742d-a404-2a917bf47bbe',
code: 'OTHER_CHANNEL',
is_code_ai_generated: true,
meta: {
x: 1228.1978975043407,
y: 1036.4727189994742,
},
follow_up: null,
target: null,
flow_id: '8d527e7d-ea6d-5422-b810-5b4c8be7657b',
is_meaningful: false,
ai_translated_locales: [],
type: 'text',
content: {
text: [
{
message: 'Other channel',
locale: 'en',
},
],
buttons_style: 'button',
buttons: [],
},
},
{
id: '019adf85-a9a7-7402-ac07-fdfb6b6a5b57',
code: '',
is_code_ai_generated: false,
meta: {
x: 375.8737426042255,
y: 1486.6747085108168,
},
follow_up: null,
target: {
id: '019adf85-a9a7-7402-ac08-017037c939e5',
type: 'function',
},
flow_id: '8d527e7d-ea6d-5422-b810-5b4c8be7657b',
is_meaningful: false,
ai_translated_locales: [],
type: 'keyword',
content: {
title: [],
keywords: [
{
values: ['string'],
locale: 'en',
},
],
},
},
{
id: '019adf85-a9a7-7402-ac08-017037c939e5',
code: 'CUSTOM_STRING_CONDITIONAL',
is_code_ai_generated: false,
meta: {
x: 762.6977821358162,
y: 1335.8788964900273,
},
follow_up: null,
target: null,
flow_id: '8d527e7d-ea6d-5422-b810-5b4c8be7657b',
is_meaningful: false,
ai_translated_locales: [],
type: 'function',
content: {
action: 'check-bot-variable',
arguments: [
{
type: 'string',
name: 'keyPath',
value: 'booking',
},
],
result_mapping: [
{
result: 'default',
target: {
id: '019adf85-a9a7-7402-ac08-0c8083e0ae07',
type: 'text',
},
},
{
result: 'ASD1234',
target: {
id: '019adf85-a9a7-7402-ac08-082a083c18c9',
type: 'text',
},
},
],
},
},
{
id: '019adf85-a9a7-7402-ac08-082a083c18c9',
code: 'BOOKING_ASD1234',
is_code_ai_generated: true,
meta: {
x: 1212.899771647159,
y: 1377.40238095952,
},
follow_up: null,
target: null,
flow_id: '8d527e7d-ea6d-5422-b810-5b4c8be7657b',
is_meaningful: false,
ai_translated_locales: [],
type: 'text',
content: {
text: [
{
message: 'booking ASD1234',
locale: 'en',
},
],
buttons_style: 'button',
buttons: [],
},
},
{
id: '019adf85-a9a7-7402-ac08-0c8083e0ae07',
code: 'OTHER_BOOKING',
is_code_ai_generated: true,
meta: {
x: 1186.6744130348477,
y: 1580.6489102049322,
},
follow_up: null,
target: null,
flow_id: '8d527e7d-ea6d-5422-b810-5b4c8be7657b',
is_meaningful: false,
ai_translated_locales: [],
type: 'text',
content: {
text: [
{
message: 'Other booking',
locale: 'en',
},
],
buttons_style: 'button',
buttons: [],
},
},
{
id: '019adf85-a9a7-7402-ac08-1161c3248301',
code: '',
is_code_ai_generated: false,
meta: {
x: 229.4488236854877,
y: 1724.888382572644,
},
follow_up: null,
target: {
id: '019adf85-a9a7-7402-ac08-15cb1a49e608',
type: 'function',
},
flow_id: '8d527e7d-ea6d-5422-b810-5b4c8be7657b',
is_meaningful: false,
ai_translated_locales: [],
type: 'keyword',
content: {
title: [],
keywords: [
{
values: ['number'],
locale: 'en',
},
],
},
},
{
id: '019adf85-a9a7-7402-ac08-15cb1a49e608',
code: 'CUSTOM_NUMBER_CONDITIONAL',
is_code_ai_generated: false,
meta: {
x: 655.6109011355452,
y: 1727.07382912367,
},
follow_up: null,
target: null,
flow_id: '8d527e7d-ea6d-5422-b810-5b4c8be7657b',
is_meaningful: false,
ai_translated_locales: [],
type: 'function',
content: {
action: 'check-bot-variable',
arguments: [
{
type: 'number',
name: 'keyPath',
value: 'numberOfBags',
},
],
result_mapping: [
{
result: 'default',
target: {
id: '019adf85-a9a7-7402-ac08-29e5caeea7b8',
type: 'text',
},
},
{
result: 1,
target: {
id: '019adf85-a9a7-7402-ac08-20447bdb2e12',
type: 'text',
},
},
{
result: 2,
target: {
id: '019adf85-a9a7-7402-ac08-243d06581743',
type: 'text',
},
},
],
},
},
{
id: '019adf85-a9a7-7402-ac08-20447bdb2e12',
code: 'ONE_BAG',
is_code_ai_generated: true,
meta: {
x: 992.8106044405954,
y: 1763.0188523328573,
},
follow_up: null,
target: null,
flow_id: '8d527e7d-ea6d-5422-b810-5b4c8be7657b',
is_meaningful: false,
ai_translated_locales: [],
type: 'text',
content: {
text: [
{
message: '1 bag',
locale: 'en',
},
],
buttons_style: 'button',
buttons: [],
},
},
{
id: '019adf85-a9a7-7402-ac08-243d06581743',
code: 'TWO_BAGS',
is_code_ai_generated: true,
meta: {
x: 989.9732389610544,
y: 1879.6080916204999,
},
follow_up: null,
target: null,
flow_id: '8d527e7d-ea6d-5422-b810-5b4c8be7657b',
is_meaningful: false,
ai_translated_locales: [],
type: 'text',
content: {
text: [
{
message: '2 bags',
locale: 'en',
},
],
buttons_style: 'button',
buttons: [],
},
},
{
id: '019adf85-a9a7-7402-ac08-29e5caeea7b8',
code: 'OTHER_NUMBER_OF_BAGS',
is_code_ai_generated: true,
meta: {
x: 988.1013684183097,
y: 2002.7412871052427,
},
follow_up: null,
target: null,
flow_id: '8d527e7d-ea6d-5422-b810-5b4c8be7657b',
is_meaningful: false,
ai_translated_locales: [],
type: 'text',
content: {
text: [
{
message: 'Other number of bags',
locale: 'en',
},
],
buttons_style: 'button',
buttons: [],
},
},
{
id: '019adf85-a9a7-7402-ac08-2fad480909b6',
code: '',
is_code_ai_generated: false,
meta: {
x: 105.23600085228827,
y: 2172.74200433239,
},
follow_up: null,
target: {
id: '019adf85-a9a7-7402-ac08-302ff3af9d60',
type: 'function',
},
flow_id: '8d527e7d-ea6d-5422-b810-5b4c8be7657b',
is_meaningful: false,
ai_translated_locales: [],
type: 'keyword',
content: {
title: [],
keywords: [
{
values: ['boolean'],
locale: 'en',
},
],
},
},
{
id: '019adf85-a9a7-7402-ac08-302ff3af9d60',
code: 'CUSTOM_BOOLEAN_CONDITIONAL',
is_code_ai_generated: false,
meta: {
x: 492.6569430290351,
y: 2190.1122992137516,
},
follow_up: null,
target: null,
flow_id: '8d527e7d-ea6d-5422-b810-5b4c8be7657b',
is_meaningful: false,
ai_translated_locales: [],
type: 'function',
content: {
action: 'check-bot-variable',
arguments: [
{
type: 'boolean',
name: 'keyPath',
value: 'isLogged',
},
],
result_mapping: [
{
result: 'default',
target: {
id: '019adf85-a9a7-7402-ac08-420fc2c3bef4',
type: 'text',
},
},
{
result: true,
target: {
id: '019adf85-a9a7-7402-ac08-3d24e65b54f5',
type: 'text',
},
},
{
result: false,
target: {
id: '019adf85-a9a7-7402-ac08-420fc2c3bef4',
type: 'text',
},
},
],
},
},
{
id: '019adf85-a9a7-7402-ac08-3d24e65b54f5',
code: 'USER_LOGGED',
is_code_ai_generated: true,
meta: {
x: 813.0847649240786,
y: 2261.786943585011,
},
follow_up: null,
target: null,
flow_id: '8d527e7d-ea6d-5422-b810-5b4c8be7657b',
is_meaningful: false,
ai_translated_locales: [],
type: 'text',
content: {
text: [
{
message: 'User logged',
locale: 'en',
},
],
buttons_style: 'button',
buttons: [],
},
},
{
id: '019adf85-a9a7-7402-ac08-420fc2c3bef4',
code: 'USER_NOT_LOGGED',
is_code_ai_generated: true,
meta: {
x: 815.1928426997038,
y: 2386.163532346903,
},
follow_up: null,
target: null,
flow_id: '8d527e7d-ea6d-5422-b810-5b4c8be7657b',
is_meaningful: false,
ai_translated_locales: [],
type: 'text',
content: {
text: [
{
message: 'User not logged',
locale: 'en',
},
],
buttons_style: 'button',
buttons: [],
},
},
{
id: '019adf85-a9a7-7402-ac08-44e6223103b2',
code: '',
is_code_ai_generated: false,
meta: {
x: 1443.6421160685363,
y: 244.9475359340572,
},
follow_up: null,
target: {
id: '019adf85-a9a7-7402-ac08-4884a23c3f24',
type: 'text',
},
flow_id: '8d527e7d-ea6d-5422-b810-5b4c8be7657b',
is_meaningful: false,
ai_translated_locales: [],
type: 'keyword',
content: {
title: [],
keywords: [
{
values: ['agent'],
locale: 'en',
},
],
},
},
{
id: '019adf85-a9a7-7402-ac08-4884a23c3f24',
code: 'TEXT_BEFORE_HANDOFF',
is_code_ai_generated: true,
meta: {
x: 1716.6479104934,
y: 327.3703724823482,
},
follow_up: {
id: '019adf85-a9a7-7402-ac08-4ea6a83f57f3',
type: 'handoff',
},
target: null,
flow_id: '8d527e7d-ea6d-5422-b810-5b4c8be7657b',
is_meaningful: false,
ai_translated_locales: [],
type: 'text',
content: {
text: [
{
message: 'Text before handoff',
locale: 'en',
},
],
buttons_style: 'button',
buttons: [],
},
},
{
id: '019adf85-a9a7-7402-ac08-4ea6a83f57f3',
code: 'HANDOFF_CUSTOMER_SUPPORT',
is_code_ai_generated: false,
meta: {
x: 2019.5321512537257,
y: 331.36382079410043,
},
follow_up: null,
target: {
id: '019ae4f4-bd51-74f2-98d6-322aacddea0c',
type: 'rating',
},
flow_id: '8d527e7d-ea6d-5422-b810-5b4c8be7657b',
is_meaningful: false,
ai_translated_locales: [],
type: 'handoff',
content: {
queue: [
{
id: '7b036626-824e-46eb-ac7e-7750b41a8ad3',
name: 'Urgent',
locale: 'en',
},
],
payload: [],
has_auto_assign: false,
has_queue_position_changed_notifications_enabled: false,
},
},
{
id: '019adf85-a9a7-7402-ac08-5ac850ebb1f8',
code: '',
is_code_ai_generated: false,
meta: {
x: 1626.745262618851,
y: 889.9664208719091,
},
follow_up: null,
target: {
id: '019adf85-a9a7-7402-ac08-5e2e7b494b09',
type: 'function',
},
flow_id: '8d527e7d-ea6d-5422-b810-5b4c8be7657b',
is_meaningful: false,
ai_translated_locales: [],
type: 'keyword',
content: {
title: [],
keywords: [
{
values: ['queue'],
locale: 'en',
},
],
},
},
{
id: '019adf85-a9a7-7402-ac08-5e2e7b494b09',
code: 'QUEUE-STATUS_CONDITIONAL',
is_code_ai_generated: false,
meta: {
x: 1998.68412052337,
y: 887.0261927461816,
},
follow_up: null,
target: null,
flow_id: '8d527e7d-ea6d-5422-b810-5b4c8be7657b',
is_meaningful: false,
ai_translated_locales: [],
type: 'function',
content: {
action: 'check-queue-status',
arguments: [
{
locale: 'en',
values: [
{
type: 'string',
name: 'queue_id',
value: '7b036626-824e-46eb-ac7e-7750b41a8ad3',
},
{
type: 'string',
name: 'queue_name',
value: 'Urgent',
},
],
},
{
type: 'boolean',
name: 'check_available_agents',
value: true,
},
],
result_mapping: [
{
result: 'open',
target: {
id: '019adf85-a9a7-7402-ac08-6405c5159b7f',
type: 'text',
},
},
{
result: 'closed',
target: {
id: '019adf85-a9a7-7402-ac08-684fc178a5cd',
type: 'text',
},
},
{
result: 'open-without-agents',
target: {
id: '019adf85-a9a7-7402-ac08-6ff0bc5e6464',
type: 'text',
},
},
],
},
},
{
id: '019adf85-a9a7-7402-ac08-6405c5159b7f',
code: 'OPEN',
is_code_ai_generated: true,
meta: {
x: 2372.093092490752,
y: 967.8824662036859,
},
follow_up: null,
target: null,
flow_id: '8d527e7d-ea6d-5422-b810-5b4c8be7657b',
is_meaningful: false,
ai_translated_locales: [],
type: 'text',
content: {
text: [
{
message: 'Open',
locale: 'en',
},
],
buttons_style: 'button',
buttons: [],
},
},
{
id: '019adf85-a9a7-7402-ac08-684fc178a5cd',
code: 'CLOSED',
is_code_ai_generated: true,
meta: {
x: 2377.973548742207,
y: 1200.1604881361523,
},
follow_up: null,
target: null,
flow_id: '8d527e7d-ea6d-5422-b810-5b4c8be7657b',
is_meaningful: false,
ai_translated_locales: [],
type: 'text',
content: {
text: [
{
message: 'Closed',
locale: 'en',
},
],
buttons_style: 'button',
buttons: [],
},
},
{
id: '019adf85-a9a7-7402-ac08-6ff0bc5e6464',
code: 'OPEN_WITHOUT_AGENTS',
is_code_ai_generated: true,
meta: {
x: 2375.03332061648,
y: 1082.551363107055,
},
follow_up: null,
target: null,
flow_id: '8d527e7d-ea6d-5422-b810-5b4c8be7657b',
is_meaningful: false,
ai_translated_locales: [],
type: 'text',
content: {
text: [
{
message: 'Open without agents available',
locale: 'en',
},
],
buttons_style: 'button',
buttons: [],
},
},
{
id: '019adf85-a9a7-7402-ac08-70727ec4dfb0',
code: '',
is_code_ai_generated: false,
meta: {
x: 822.6790648514966,
y: 129.26499481807195,
},
follow_up: null,
target: {
id: '019adf85-a9a7-7402-ac08-7699ce244bf8',
type: 'video',
},
flow_id: '8d527e7d-ea6d-5422-b810-5b4c8be7657b',
is_meaningful: false,
ai_translated_locales: [],
type: 'keyword',
content: {
title: [],
keywords: [
{
values: ['video'],
locale: 'en',
},
],
},
},
{
id: '019adf85-a9a7-7402-ac08-7699ce244bf8',
code: 'video-msg',
is_code_ai_generated: false,
meta: {
x: 1137.6816867110138,
y: 206.48442422480684,
},
follow_up: null,
target: null,
flow_id: '8d527e7d-ea6d-5422-b810-5b4c8be7657b',
is_meaningful: false,
ai_translated_locales: [],
type: 'video',
content: {
video: [
{
url: 'https://www.youtube.com/9e820c58-891c-4579-803c-f341da67ad63',
is_embedded: false,
locale: 'en',
},
],
},
},
{
id: '019adf85-a9a8-730a-8750-6f0ff5d0aa69',
code: '',
is_code_ai_generated: false,
meta: {
x: 1366.3377951598686,
y: -464.462909001808,
},
follow_up: null,
target: {
id: '019adf85-a9a8-730a-8750-7210142ffc4a',
type: 'text',
},
flow_id: '8d527e7d-ea6d-5422-b810-5b4c8be7657b',
is_meaningful: false,
ai_translated_locales: [],
type: 'keyword',
content: {
title: [],
keywords: [
{
values: ['gotoflow'],
locale: 'en',
},
],
},
},
{
id: '019adf85-a9a8-730a-8750-7210142ffc4a',
code: 'TEXT_BEFORE_GO_TO_FLOW',
is_code_ai_generated: false,
meta: {
x: 1678.7874853795224,
y: -387.39434634617993,
},
follow_up: {
id: '019adf85-a9a8-730a-8750-77c55d7aeea2',
type: 'go-to-flow',
},
target: null,
flow_id: '8d527e7d-ea6d-5422-b810-5b4c8be7657b',
is_meaningful: false,
ai_translated_locales: [],
type: 'text',
content: {
text: [
{
message: 'Text before go to flow',
locale: 'en',
},
],
buttons_style: 'button',
buttons: [],
},
},
{
id: '019adf85-a9a8-730a-8750-77c55d7aeea2',
code: 'Go to flow|019adf85-a9a8-730a-8750-77c55d7aeea2',
is_code_ai_generated: false,
meta: {
x: 1995.047537675026,
y: -346.3416846504754,
},
follow_up: null,
target: null,
flow_id: '8d527e7d-ea6d-5422-b810-5b4c8be7657b',
is_meaningful: false,
ai_translated_locales: [],
type: 'go-to-flow',
content: {
flow_id: '019ac511-cdb3-71ae-8cc3-d03abcb99420',
},
},
{
id: '019adf86-551e-729a-977e-2ef036201e42',
code: 'FIRST_TEXT_SECOND_FLOW',
is_code_ai_generated: false,
meta: {
x: 360.5263619090137,
y: 24.132004640093257,
},
follow_up: null,
target: null,
flow_id: '019adf85-f0db-75ec-8657-57a8ec1b6ba9',
is_meaningful: false,
ai_translated_locales: [],
type: 'text',
content: {
text: [
{
message: 'First text in second flow',
locale: 'en',
},
],
buttons_style: 'button',
buttons: [],
},
},
{
id: '019adfa5-73d5-769b-a457-7e30fe8e7d8e',
code: 'WHATSAPP_BUTTON_LIST_MSG',
is_code_ai_generated: false,
meta: {
x: 2108.5167844333137,
y: 1548.5324237239543,
},
follow_up: null,
target: null,
flow_id: '8d527e7d-ea6d-5422-b810-5b4c8be7657b',
is_meaningful: false,
ai_translated_locales: [],
type: 'whatsapp_button_list',
content: {
text: [
{
message: 'Whatsapp button list',
locale: 'en',
},
],
button_text: [
{
message: 'Menu',
locale: 'en',
},
],
sections: [
{
id: '019adfa5-73d5-769b-a457-797c88e1b0d6',
title: [
{
message: 'section 1',
locale: 'en',
},
],
rows: [
{
id: '019adfa5-73d5-769b-a457-6a183b41b0ff',
text: [
{
message: 'button 1',
locale: 'en',
},
],
description: [
{
message: 'description 1',
locale: 'en',
},
],
target: {
id: '019adfa6-186b-77ac-8cd0-3d1d5976792d',
type: 'text',
},
},
{
id: '019adfa5-73d5-769b-a457-6fb81656e896',
text: [
{
message: 'button 2',
locale: 'en',
},
],
description: [],
target: {
id: '019adfa7-9e80-7249-a737-fb3bbfde42f9',
type: 'text',
},
},
{
id: '019adfa5-73d5-769b-a457-71b853835061',
text: [
{
message: 'button 3',
locale: 'en',
},
],
description: [],
target: {
id: '019adfa7-a043-746a-b570-bc505621dce2',
type: 'text',
},
},
],
},
{
id: '019adfa7-f8b3-7598-8a35-96096f4c48b1',
title: [
{
message: 'section 2',
locale: 'en',
},
],
rows: [
{
id: '019adfa5-73d5-769b-a457-7565a6efeb16',
text: [
{
message: 'button 4',
locale: 'en',
},
],
description: [],
target: {
id: '019adfa7-a1e2-75a9-8bf5-71a54e03d4ae',
type: 'text',
},
},
],
},
],
},
},
{
id: '019adfa5-871b-73da-aac0-e30b8434e91c',
code: '',
is_code_ai_generated: false,
meta: {
x: 1720.1824789861814,
y: 1574.1203430751218,
},
follow_up: null,
target: {
id: '019adfa5-73d5-769b-a457-7e30fe8e7d8e',
type: 'whatsapp_button_list',
},
flow_id: '8d527e7d-ea6d-5422-b810-5b4c8be7657b',
is_meaningful: false,
ai_translated_locales: [],
type: 'keyword',
content: {
title: [],
keywords: [
{
values: ['list'],
locale: 'en',
},
],
},
},
{
id: '019adfa6-186b-77ac-8cd0-3d1d5976792d',
code: 'TEXT_AFTER_BUTTON_1',
is_code_ai_generated: true,
meta: {
x: 2415.571816647325,
y: 1575.6255148016612,
},
follow_up: null,
target: null,
flow_id: '8d527e7d-ea6d-5422-b810-5b4c8be7657b',
is_meaningful: false,
ai_translated_locales: [],
type: 'text',
content: {
text: [
{