Advertisement
Guest User

-flow.json

a guest
Apr 6th, 2020
554
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 20.31 KB | None | 0 0
  1. {
  2.   "description": "General-flow",
  3.   "states": [
  4.     {
  5.       "name": "Trigger",
  6.       "type": "InitialState",
  7.       "properties": {
  8.         "offset": {
  9.           "x": -280,
  10.           "y": 0
  11.         },
  12.         "flow_url": "https://webhooks.twilio.com/v1/Accounts/ACb5e15506e866d738558cae73adc6f636/Flows/FWb0013e4ad67bf00e1866976afa513276"
  13.       },
  14.       "transitions": [
  15.         {
  16.           "event": "incomingMessage",
  17.           "conditions": [],
  18.           "next": "FFd7cbb252355a62accea2295484c8a272",
  19.           "uuid": "d0c6e880-9fee-4666-8584-3b831f07b5c7"
  20.         },
  21.         {
  22.           "event": "incomingCall",
  23.           "conditions": [],
  24.           "next": null,
  25.           "uuid": "2f98286e-4821-4187-8a6d-04a78b34b95c"
  26.         },
  27.         {
  28.           "event": "incomingRequest",
  29.           "conditions": [],
  30.           "next": "FF17ada6535c4c15c1f605510940d61676",
  31.           "uuid": "f50b9ff5-daf0-4ecb-aed4-1c795afa0c5b"
  32.         }
  33.       ],
  34.       "sid": "FFe6982cf50f5b5c0ef41af566462c0cde"
  35.     },
  36.     {
  37.       "name": "v_set_variables",
  38.       "type": "SetVariables",
  39.       "properties": {
  40.         "offset": {
  41.           "x": -10,
  42.           "y": 170
  43.         },
  44.         "variables": [
  45.           {
  46.             "key": "current",
  47.             "value": "{{widgets.v_set_variables.Variables.current}}",
  48.             "index": "0"
  49.           },
  50.           {
  51.             "key": "reply",
  52.             "value": "{{widgets.reply.inbound.Body}}",
  53.             "index": "1"
  54.           },
  55.           {
  56.             "key": "previous",
  57.             "value": "start"
  58.           },
  59.           {
  60.             "key": "steps",
  61.             "value": "{{ flow.data.steps | to_json }}"
  62.           },
  63.           {
  64.             "key": "state",
  65.             "value": "{{flow.data.state | to_json }}",
  66.             "index": "4"
  67.           },
  68.           {
  69.             "key": "replies",
  70.             "value": ":>>",
  71.             "index": "5"
  72.           }
  73.         ]
  74.       },
  75.       "transitions": [
  76.         {
  77.           "event": "next",
  78.           "conditions": [],
  79.           "next": "FF517d06ea3d1db7e2505071488aa719df",
  80.           "uuid": "0d42e925-9573-4a6e-9df1-ace8a5d84eeb"
  81.         }
  82.       ],
  83.       "sid": "FF17ada6535c4c15c1f605510940d61676"
  84.     },
  85.     {
  86.       "name": "f_load_next",
  87.       "type": "Function",
  88.       "properties": {
  89.         "offset": {
  90.           "x": -10,
  91.           "y": 380
  92.         },
  93.         "url": "https://studio-helpers-4924-prod.twil.io/process-next",
  94.         "timeout": null,
  95.         "parameters": [
  96.           {
  97.             "key": "variables",
  98.             "value": "{{flow.variables | to_json}}"
  99.           }
  100.         ],
  101.         "service_sid": "ZS3cc3d0fd33783728ce19a8a832b1d0b7",
  102.         "function_sid": "ZNc5843c4b3104b723307fd94f1ebdbeb2",
  103.         "environment_sid": "ZE37b748efa9f8450169885eb99c673e1e"
  104.       },
  105.       "transitions": [
  106.         {
  107.           "event": "success",
  108.           "conditions": [],
  109.           "next": "FF674c3e656409e901dd03086d2b11d343",
  110.           "uuid": "62a5d8ee-b873-455d-b5da-32f48a62dfc9"
  111.         },
  112.         {
  113.           "event": "fail",
  114.           "conditions": [],
  115.           "next": null,
  116.           "uuid": "94dac718-d0ff-43d8-a5b7-646e9220b978"
  117.         }
  118.       ],
  119.       "sid": "FF517d06ea3d1db7e2505071488aa719df"
  120.     },
  121.     {
  122.       "name": "v_update_context",
  123.       "type": "SetVariables",
  124.       "properties": {
  125.         "offset": {
  126.           "x": -10,
  127.           "y": 590
  128.         },
  129.         "variables": [
  130.           {
  131.             "key": "previous",
  132.             "value": "{{flow.variables.current}}"
  133.           },
  134.           {
  135.             "value": "{{widgets.f_load_next.parsed.next}}",
  136.             "key": "current",
  137.             "index": "1"
  138.           },
  139.           {
  140.             "key": "reply",
  141.             "value": "_"
  142.           },
  143.           {
  144.             "key": "catch_text",
  145.             "value": "{{widgets.f_load_next.parsed.catchText}}"
  146.           }
  147.         ]
  148.       },
  149.       "transitions": [
  150.         {
  151.           "event": "next",
  152.           "conditions": [],
  153.           "next": "FF5bfd99cc95db639e12564e4fd4b44e92",
  154.           "uuid": "fd17c587-f76a-43b3-8f50-fe246e7376ca"
  155.         }
  156.       ],
  157.       "sid": "FF674c3e656409e901dd03086d2b11d343"
  158.     },
  159.     {
  160.       "name": "s_solve_next",
  161.       "type": "Branch",
  162.       "properties": {
  163.         "offset": {
  164.           "x": -10,
  165.           "y": 790
  166.         },
  167.         "input": "{{widgets.f_load_next.parsed.block.type}}"
  168.       },
  169.       "transitions": [
  170.         {
  171.           "event": "noMatch",
  172.           "conditions": [],
  173.           "next": "FF0dad89e568cc23690e859d5b36816d25",
  174.           "uuid": "8a2f901a-8aca-4776-8ba1-9d5643ee81b7"
  175.         },
  176.         {
  177.           "event": "match",
  178.           "conditions": [
  179.             {
  180.               "friendly_name": "If value equal_to reply",
  181.               "type": "equal_to",
  182.               "arguments": [
  183.                 "{{widgets.f_load_next.parsed.block.type}}"
  184.               ],
  185.               "value": "reply"
  186.             }
  187.           ],
  188.           "next": "FF4ab59e198c267b7b3104c2a4eb3f5d98",
  189.           "uuid": "c50f4bbd-ed41-4ff9-9e1c-efb7773632b1"
  190.         },
  191.         {
  192.           "event": "match",
  193.           "conditions": [
  194.             {
  195.               "friendly_name": "If value equal_to basic",
  196.               "type": "equal_to",
  197.               "arguments": [
  198.                 "{{widgets.f_load_next.parsed.block.type}}"
  199.               ],
  200.               "value": "basic"
  201.             }
  202.           ],
  203.           "next": "FF73e51f5a7cf4f9b627e90a7f51542488",
  204.           "uuid": "fced5388-f866-416a-b0f5-d001bdb85760"
  205.         },
  206.         {
  207.           "event": "match",
  208.           "conditions": [
  209.             {
  210.               "friendly_name": "If value equal_to catchAll",
  211.               "type": "equal_to",
  212.               "arguments": [
  213.                 "{{widgets.f_load_next.parsed.block.type}}"
  214.               ],
  215.               "value": "catch_all"
  216.             }
  217.           ],
  218.           "next": "FF36accfa4daaffe00163b0bc7a21b9bef",
  219.           "uuid": "30c4e121-f02c-48fb-8a42-b1fa4f2cab38"
  220.         },
  221.         {
  222.           "event": "match",
  223.           "conditions": [
  224.             {
  225.               "friendly_name": "If value equal_to timeout",
  226.               "type": "equal_to",
  227.               "arguments": [
  228.                 "{{widgets.f_load_next.parsed.block.type}}"
  229.               ],
  230.               "value": "timeout"
  231.             }
  232.           ],
  233.           "next": "FF6c2c9ad0f0a45dd25473f72e733556bf",
  234.           "uuid": "f8429630-64b2-4936-8630-fc79c4af8b97"
  235.         },
  236.         {
  237.           "event": "match",
  238.           "conditions": [
  239.             {
  240.               "friendly_name": "If value equal_to webhook",
  241.               "type": "equal_to",
  242.               "arguments": [
  243.                 "{{widgets.f_load_next.parsed.block.type}}"
  244.               ],
  245.               "value": "webhook"
  246.             }
  247.           ],
  248.           "next": "FFf4ffb1f68de0eb3b556115367a6b14bb",
  249.           "uuid": "bd36463e-3c72-4490-a4c7-0137726bcbfd"
  250.         }
  251.       ],
  252.       "sid": "FF5bfd99cc95db639e12564e4fd4b44e92"
  253.     },
  254.     {
  255.       "name": "reply",
  256.       "type": "MessagePrompt",
  257.       "properties": {
  258.         "offset": {
  259.           "x": -770,
  260.           "y": 1290
  261.         },
  262.         "body": "{{widgets.f_load_next.parsed.block.text}}",
  263.         "from": "{{flow.channel.address}}",
  264.         "timeout": 3600,
  265.         "save_response_as": null,
  266.         "media_url": "{{widgets.f_load_next.parsed.block.image}}",
  267.         "service": "{{trigger.message.InstanceSid}}",
  268.         "channel": "{{trigger.message.ChannelSid}}",
  269.         "attributes": null
  270.       },
  271.       "transitions": [
  272.         {
  273.           "event": "incomingMessage",
  274.           "conditions": [],
  275.           "next": "FF8624e33a96597460ed4c15f6a8deaa61",
  276.           "uuid": "4ee34dea-281e-4d9b-ac25-e97a35c3e600"
  277.         },
  278.         {
  279.           "event": "timeout",
  280.           "conditions": [],
  281.           "next": null,
  282.           "uuid": "364f3bff-d91e-42b8-a336-c7d3b5fb8585"
  283.         },
  284.         {
  285.           "event": "deliveryFailure",
  286.           "conditions": [],
  287.           "next": null,
  288.           "uuid": "0abd4a2b-9651-41be-bf4a-e203db363f04"
  289.         }
  290.       ],
  291.       "sid": "FFe87549d85fe468441e6d9d40bde711a0"
  292.     },
  293.     {
  294.       "name": "f_check_status",
  295.       "type": "Function",
  296.       "properties": {
  297.         "offset": {
  298.           "x": 60,
  299.           "y": 1300
  300.         },
  301.         "url": "https://studio-helpers-4924-prod.twil.io/check-message",
  302.         "timeout": null,
  303.         "parameters": [
  304.           {
  305.             "key": "sid",
  306.             "value": "{{widgets.f_basic.parsed.sid}}"
  307.           }
  308.         ],
  309.         "service_sid": "ZS3cc3d0fd33783728ce19a8a832b1d0b7",
  310.         "function_sid": "ZNe038a7175e500da4cc4ee112070f81a1",
  311.         "environment_sid": "ZE37b748efa9f8450169885eb99c673e1e"
  312.       },
  313.       "transitions": [
  314.         {
  315.           "event": "success",
  316.           "conditions": [],
  317.           "next": "FF0fc2bae7f55d696ef07e274960fd81d8",
  318.           "uuid": "038c74f7-8dc0-4dce-8305-5f8966d6d168"
  319.         },
  320.         {
  321.           "event": "fail",
  322.           "conditions": [],
  323.           "next": null,
  324.           "uuid": "54836cea-6146-49d0-96a2-565b47ee5801"
  325.         }
  326.       ],
  327.       "sid": "FF9cb83333155542f2882d03dcf353b1cf"
  328.     },
  329.     {
  330.       "name": "f_basic",
  331.       "type": "Function",
  332.       "properties": {
  333.         "offset": {
  334.           "x": 50,
  335.           "y": 1100
  336.         },
  337.         "url": "https://studio-helpers-4924-prod.twil.io/send-message",
  338.         "timeout": null,
  339.         "parameters": [
  340.           {
  341.             "key": "to",
  342.             "value": "{{contact.channel.address}}"
  343.           },
  344.           {
  345.             "key": "from",
  346.             "value": "{{flow.channel.address}}"
  347.           },
  348.           {
  349.             "key": "resource",
  350.             "value": "{{widgets.f_load_next.parsed.block.image}}"
  351.           },
  352.           {
  353.             "key": "text",
  354.             "value": "{{widgets.f_load_next.parsed.block.text}}"
  355.           }
  356.         ],
  357.         "service_sid": "ZS3cc3d0fd33783728ce19a8a832b1d0b7",
  358.         "function_sid": "ZNe38c8dc84409e3db4e6a6c10020c93a0",
  359.         "environment_sid": "ZE37b748efa9f8450169885eb99c673e1e"
  360.       },
  361.       "transitions": [
  362.         {
  363.           "event": "success",
  364.           "conditions": [],
  365.           "next": "FF9cb83333155542f2882d03dcf353b1cf",
  366.           "uuid": "0b1cdd98-9dde-41b3-b73c-34731e433089"
  367.         },
  368.         {
  369.           "event": "fail",
  370.           "conditions": [],
  371.           "next": null,
  372.           "uuid": "12a88b12-eb66-4f94-8f02-2b98fc06e2b6"
  373.         }
  374.       ],
  375.       "sid": "FF73e51f5a7cf4f9b627e90a7f51542488"
  376.     },
  377.     {
  378.       "name": "s_check_status_loop",
  379.       "type": "Branch",
  380.       "properties": {
  381.         "offset": {
  382.           "x": 60,
  383.           "y": 1470
  384.         },
  385.         "input": "{{widgets.f_check_status.parsed.status}}"
  386.       },
  387.       "transitions": [
  388.         {
  389.           "event": "noMatch",
  390.           "conditions": [],
  391.           "next": "FF9cb83333155542f2882d03dcf353b1cf",
  392.           "uuid": "961c16d1-1403-46b8-bf1a-e3f8943b71e8"
  393.         },
  394.         {
  395.           "event": "match",
  396.           "conditions": [
  397.             {
  398.               "friendly_name": "If value equal_to delivered,sent",
  399.               "type": "matches_any_of",
  400.               "arguments": [
  401.                 "{{widgets.f_check_status.parsed.status}}"
  402.               ],
  403.               "value": "delivered,sent,Delivered,Sent"
  404.             }
  405.           ],
  406.           "next": "FF517d06ea3d1db7e2505071488aa719df",
  407.           "uuid": "020c8dce-5c0f-40ca-b66b-9775a05f2b3d"
  408.         }
  409.       ],
  410.       "sid": "FF0fc2bae7f55d696ef07e274960fd81d8"
  411.     },
  412.     {
  413.       "name": "v_set_reply",
  414.       "type": "SetVariables",
  415.       "properties": {
  416.         "offset": {
  417.           "x": -480,
  418.           "y": 1550
  419.         },
  420.         "variables": [
  421.           {
  422.             "key": "reply",
  423.             "value": "{% if widgets.reply.inbound.Body %}{{widgets.reply.inbound.Body}}{% else %}{{widgets.reply_text.inbound.Body}}{% endif %}",
  424.             "index": "0"
  425.           }
  426.         ]
  427.       },
  428.       "transitions": [
  429.         {
  430.           "event": "next",
  431.           "conditions": [],
  432.           "next": "FF3831d850e46aec3d116f6fbb15f48f55",
  433.           "uuid": "19e2849b-a4cd-40d4-a7a5-e9cc54a1faf7"
  434.         }
  435.       ],
  436.       "sid": "FF8624e33a96597460ed4c15f6a8deaa61"
  437.     },
  438.     {
  439.       "name": "catch_all",
  440.       "type": "MessagePrompt",
  441.       "properties": {
  442.         "offset": {
  443.           "x": 500,
  444.           "y": 1100
  445.         },
  446.         "body": "{{flow.variables.catch_text}}",
  447.         "from": "{{flow.channel.address}}",
  448.         "timeout": 3600,
  449.         "save_response_as": null,
  450.         "media_url": null,
  451.         "service": "{{trigger.message.InstanceSid}}",
  452.         "channel": "{{trigger.message.ChannelSid}}",
  453.         "attributes": null
  454.       },
  455.       "transitions": [
  456.         {
  457.           "event": "incomingMessage",
  458.           "conditions": [],
  459.           "next": "FF2e5d82ad368f173d17be97b876beeb58",
  460.           "uuid": "bfec30a6-d38d-44e1-b548-233b6adeb253"
  461.         },
  462.         {
  463.           "event": "timeout",
  464.           "conditions": [],
  465.           "next": null,
  466.           "uuid": "e3893bbe-06f0-4c5e-be0b-d395b8afd349"
  467.         },
  468.         {
  469.           "event": "deliveryFailure",
  470.           "conditions": [],
  471.           "next": null,
  472.           "uuid": "20623686-cf63-402d-9aed-42baa8ffb9f7"
  473.         }
  474.       ],
  475.       "sid": "FF36accfa4daaffe00163b0bc7a21b9bef"
  476.     },
  477.     {
  478.       "name": "v_set_catch_reply",
  479.       "type": "SetVariables",
  480.       "properties": {
  481.         "offset": {
  482.           "x": 500,
  483.           "y": 1490
  484.         },
  485.         "variables": [
  486.           {
  487.             "key": "reply",
  488.             "value": "{{widgets.catch_all.inbound.Body}}"
  489.           },
  490.           {
  491.             "value": "{{ flow.variables.previous}}",
  492.             "key": "current",
  493.             "index": "1"
  494.           }
  495.         ]
  496.       },
  497.       "transitions": [
  498.         {
  499.           "event": "next",
  500.           "conditions": [],
  501.           "next": "FF3831d850e46aec3d116f6fbb15f48f55",
  502.           "uuid": "55de054b-9f5c-4ae1-988e-051a5cc1a65f"
  503.         }
  504.       ],
  505.       "sid": "FF2e5d82ad368f173d17be97b876beeb58"
  506.     },
  507.     {
  508.       "name": "http_schedule_timeout",
  509.       "type": "Webhook",
  510.       "properties": {
  511.         "offset": {
  512.           "x": 870,
  513.           "y": 1120
  514.         },
  515.         "method": "POST",
  516.         "url": "https://app.omsg.io/api/conversations/schedule",
  517.         "body": "{\n  \"executionId\": \"{{flow.sid}}\",\n  \"state\": {\n    \"current\": \"{{widgets.f_load_next.parsed.block.next}}\"\n  },\n\"schedule\": \"{{widgets.f_load_next.parsed.block.schedule}}\"\n}",
  518.         "timeout": null,
  519.         "parameters": null,
  520.         "save_response_as": null,
  521.         "content_type": "application/json;charset=utf-8"
  522.       },
  523.       "transitions": [
  524.         {
  525.           "event": "success",
  526.           "conditions": [],
  527.           "next": null,
  528.           "uuid": "00687b96-8772-4a91-9a0b-36df79767cb5"
  529.         },
  530.         {
  531.           "event": "failed",
  532.           "conditions": [],
  533.           "next": null,
  534.           "uuid": "54c169ee-5129-433a-9901-97b4f2cfcd48"
  535.         }
  536.       ],
  537.       "sid": "FF6c2c9ad0f0a45dd25473f72e733556bf"
  538.     },
  539.     {
  540.       "name": "check_reply_content",
  541.       "type": "Branch",
  542.       "properties": {
  543.         "offset": {
  544.           "x": -660,
  545.           "y": 1050
  546.         },
  547.         "input": "{{widgets.f_load_next.parsed.block.image}}"
  548.       },
  549.       "transitions": [
  550.         {
  551.           "event": "noMatch",
  552.           "conditions": [],
  553.           "next": "FF73177c1d07b34da7070a0e695ae8c26e",
  554.           "uuid": "e6d51593-e739-4719-87a0-ef8f02e79a79"
  555.         },
  556.         {
  557.           "event": "match",
  558.           "conditions": [
  559.             {
  560.               "friendly_name": "has an image",
  561.               "type": "is_not_blank",
  562.               "arguments": [
  563.                 "{{widgets.f_load_next.parsed.block.image}}"
  564.               ],
  565.               "value": "Is Not Blank"
  566.             }
  567.           ],
  568.           "next": "FFe87549d85fe468441e6d9d40bde711a0",
  569.           "uuid": "8efb4d8a-396a-4e44-9a93-4f64baa561fd"
  570.         }
  571.       ],
  572.       "sid": "FF4ab59e198c267b7b3104c2a4eb3f5d98"
  573.     },
  574.     {
  575.       "name": "reply_text",
  576.       "type": "MessagePrompt",
  577.       "properties": {
  578.         "offset": {
  579.           "x": -430,
  580.           "y": 1290
  581.         },
  582.         "body": "{{widgets.f_load_next.parsed.block.text}}",
  583.         "from": "{{flow.channel.address}}",
  584.         "timeout": 3600,
  585.         "save_response_as": null,
  586.         "media_url": null,
  587.         "service": "{{trigger.message.InstanceSid}}",
  588.         "channel": "{{trigger.message.ChannelSid}}",
  589.         "attributes": null
  590.       },
  591.       "transitions": [
  592.         {
  593.           "event": "incomingMessage",
  594.           "conditions": [],
  595.           "next": "FF8624e33a96597460ed4c15f6a8deaa61",
  596.           "uuid": "a56b1fb2-735b-44cb-a0e1-425bde4eb4ab"
  597.         },
  598.         {
  599.           "event": "timeout",
  600.           "conditions": [],
  601.           "next": null,
  602.           "uuid": "2f63ae87-0b0c-4cb4-a379-9316a03e7b1e"
  603.         },
  604.         {
  605.           "event": "deliveryFailure",
  606.           "conditions": [],
  607.           "next": null,
  608.           "uuid": "2df4ced5-b506-4b9d-ab4f-cb6f480c37c9"
  609.         }
  610.       ],
  611.       "sid": "FF73177c1d07b34da7070a0e695ae8c26e"
  612.     },
  613.     {
  614.       "name": "text_init",
  615.       "type": "Webhook",
  616.       "properties": {
  617.         "offset": {
  618.           "x": -930,
  619.           "y": 170
  620.         },
  621.         "method": "POST",
  622.         "url": "https://app.omsg.io",
  623.         "body": "{\n \"organization\": \"5d152e71-cddb-431b-b97a-acc49332c547\",\n \"origin\": \"{{flow.channel.address}}\" ,\n \"phone\": \"{{contact.channel.address}}\",\n\"executionId\": \"{{flow.sid}}\"\n}",
  624.         "timeout": null,
  625.         "parameters": null,
  626.         "save_response_as": null,
  627.         "content_type": "application/json;charset=utf-8"
  628.       },
  629.       "transitions": [
  630.         {
  631.           "event": "success",
  632.           "conditions": [],
  633.           "next": null,
  634.           "uuid": "c56ee5e3-3da7-4bcb-b1ef-e650a536286f"
  635.         },
  636.         {
  637.           "event": "failed",
  638.           "conditions": [],
  639.           "next": null,
  640.           "uuid": "217023c0-f873-4ef7-ba84-2cb838865b51"
  641.         }
  642.       ],
  643.       "sid": "FFd7cbb252355a62accea2295484c8a272"
  644.     },
  645.     {
  646.       "name": "f_webhook",
  647.       "type": "Function",
  648.       "properties": {
  649.         "offset": {
  650.           "x": 1220,
  651.           "y": 1130
  652.         },
  653.         "url": "https://studio-helpers-4924-prod.twil.io/webhook",
  654.         "timeout": null,
  655.         "parameters": [
  656.           {
  657.             "key": "block",
  658.             "value": "{{widgets.f_load_next.parsed.block | to_json}}"
  659.           }
  660.         ],
  661.         "service_sid": "ZS3cc3d0fd33783728ce19a8a832b1d0b7",
  662.         "function_sid": "ZNd6ba95c03d647885853d06f9640fdfae",
  663.         "environment_sid": "ZE37b748efa9f8450169885eb99c673e1e"
  664.       },
  665.       "transitions": [
  666.         {
  667.           "event": "success",
  668.           "conditions": [],
  669.           "next": "FF517d06ea3d1db7e2505071488aa719df",
  670.           "uuid": "1eb6bd6f-8c5d-48f5-9bab-adc5a2befb35"
  671.         },
  672.         {
  673.           "event": "fail",
  674.           "conditions": [],
  675.           "next": "FF517d06ea3d1db7e2505071488aa719df",
  676.           "uuid": "524f3b17-78c5-4149-b5b0-2f6a9affc8d3"
  677.         }
  678.       ],
  679.       "sid": "FFf4ffb1f68de0eb3b556115367a6b14bb"
  680.     },
  681.     {
  682.       "name": "v_set_replies",
  683.       "type": "SetVariables",
  684.       "properties": {
  685.         "offset": {
  686.           "x": -80,
  687.           "y": 1840
  688.         },
  689.         "variables": [
  690.           {
  691.             "value": "{{ flow.variables.replies |  append:\"?<<\" | append:flow.variables.current | append:\"<->\" | append:flow.variables.reply}}",
  692.             "key": "replies",
  693.             "index": "0"
  694.           }
  695.         ]
  696.       },
  697.       "transitions": [
  698.         {
  699.           "event": "next",
  700.           "conditions": [],
  701.           "next": "FF517d06ea3d1db7e2505071488aa719df",
  702.           "uuid": "d7cd29f0-3321-4523-a8de-bb6fd1cd1d69"
  703.         }
  704.       ],
  705.       "sid": "FF3831d850e46aec3d116f6fbb15f48f55"
  706.     },
  707.     {
  708.       "name": "http_close",
  709.       "type": "Webhook",
  710.       "properties": {
  711.         "offset": {
  712.           "x": 1590,
  713.           "y": 1130
  714.         },
  715.         "method": "POST",
  716.         "url": "https://app.omsg.io/api/conversations/saveReplies",
  717.         "body": "{\n \"executionId\": \"{{flow.sid}}\", \n  \"replies\": \"{{flow.variables.replies}}\"\n}",
  718.         "timeout": null,
  719.         "parameters": null,
  720.         "save_response_as": null,
  721.         "content_type": "application/json;charset=utf-8"
  722.       },
  723.       "transitions": [
  724.         {
  725.           "event": "success",
  726.           "conditions": [],
  727.           "next": null,
  728.           "uuid": "18ff0547-821b-4b5f-8372-d09236efb844"
  729.         },
  730.         {
  731.           "event": "failed",
  732.           "conditions": [],
  733.           "next": null,
  734.           "uuid": "fae89b31-d0fe-47b2-af37-e4593c2777f3"
  735.         }
  736.       ],
  737.       "sid": "FF0dad89e568cc23690e859d5b36816d25"
  738.     }
  739.   ]
  740. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement