Files
bot/apps/builder/public/templates/dog-insurance-offer.json
Baptiste Arnaud 35300eaf34 ♻️ Introduce typebot v6 with events (#1013)
Closes #885
2023-11-08 15:34:16 +01:00

614 lines
18 KiB
JSON

{
"version": "6",
"id": "clonzza7600031aorlgsreya0",
"name": "Insurance offer",
"events": [
{
"id": "f4ef28wxteh0wdjgubtojnkr",
"outgoingEdgeId": "u0009iy3sakdgh3k1x41i5yr",
"graphCoordinates": { "x": 0, "y": 0 },
"type": "start"
}
],
"groups": [
{
"id": "av0jzkh3qhgdyjrouvl2zywe",
"title": "Welcome",
"graphCoordinates": { "x": 68.4296875, "y": 176.178531769944 },
"blocks": [
{
"id": "y0iukpry1i6h8sv22gz4ffsg",
"type": "Set variable",
"options": {
"variableId": "vq61f8ykwadq1pj8389qf9h91",
"expressionToEvaluate": "0"
}
},
{
"id": "wza92in5v03w0oiaa1y3k68x",
"type": "text",
"content": {
"richText": [{ "type": "p", "children": [{ "text": "Hey 👋" }] }]
}
},
{
"id": "rhp6p4obkdehddhm6j7tqxe0",
"type": "text",
"content": {
"richText": [
{ "type": "p", "children": [{ "text": "I'm John from Dogz" }] }
]
}
},
{
"id": "tizd6f2qo70g59lz1rnnvho7",
"type": "text",
"content": {
"richText": [
{
"type": "p",
"children": [
{
"text": "Let's determine what would be the best insurance offer you can have for your dog 🐶"
}
]
}
]
}
},
{
"id": "dtvbio4qytr3iojc7tq2quvy",
"type": "choice input",
"items": [
{
"id": "m7l8u4y5vmwozvdtsmhq3q49",
"outgoingEdgeId": "vl23l0ak8w2qxj9wrgxhznz3",
"content": "Let's go!"
}
]
}
]
},
{
"id": "dh3wz001jaclg8ifc1vhovlq",
"title": "Breed",
"graphCoordinates": { "x": 431.756656769944, "y": 177.60546875 },
"blocks": [
{
"id": "mvdogpw4qucgot4yzabpxtcl",
"type": "text",
"content": {
"richText": [
{
"type": "p",
"children": [{ "text": "What breed is your dog?" }]
}
]
}
},
{
"id": "f2902yy6o00fwe5h4xihrntj",
"outgoingEdgeId": "moj9ezfl6bvpr4aj76cztkiu",
"type": "choice input",
"items": [
{ "id": "q7ydcwda7rsfn1w5ep9ur4y3", "content": "Crossbreed" },
{ "id": "q33qu26t8uhtp63rl7th4p0u", "content": "Labrador" },
{ "id": "c9fy5o23cuanywze536ie071", "content": "Golden Retriever" },
{ "id": "xmozt619ao4pn3lcovs6e1wp", "content": "Jack Russel" },
{ "id": "qhc245vs9s3vhq8oz9sur4jy", "content": "Husky" },
{ "id": "bqt7o8aotn5wwye98vw2u8is", "content": "Other" }
]
}
]
},
{
"id": "ynt0ya95bvuqj8mf39e938k4",
"title": "Sex",
"graphCoordinates": { "x": 786.06640625, "y": 173.0310202976334 },
"blocks": [
{
"id": "u4voz45sk9gh4khul8c519df",
"type": "text",
"content": {
"richText": [
{
"type": "p",
"children": [{ "text": "Is it a male or a female?" }]
}
]
}
},
{
"id": "zuza6om08ubafgqhbadwv60i",
"type": "choice input",
"items": [
{
"id": "mrca2ini7z81ik4k1o9g3a1s",
"outgoingEdgeId": "wciafstvwt3m4lhrejlgl0s0",
"content": "♂️ Male"
},
{
"id": "ymxxgoxxbfcmnhudwmerfgbx",
"outgoingEdgeId": "f60ldz2g58kfkvsfmnf39fjb",
"content": "♀️ Female"
}
]
}
]
},
{
"id": "c59xwfc18i4xjpaeu9dzrjcu",
"title": "",
"graphCoordinates": { "x": 1142.220231700246, "y": 145.316328962412 },
"blocks": [
{
"id": "meoptkjq8tupr3qkyqkpaxqq",
"type": "Set variable",
"options": {
"variableId": "vhl1s7qoksnw7r8b1soocxwsd",
"expressionToEvaluate": "he"
}
},
{
"id": "kqbiaq87al2uq07vuno69syo",
"outgoingEdgeId": "to4im28nzrg3yk0ama07l2oz",
"type": "text",
"content": {
"richText": [
{ "type": "p", "children": [{ "text": "What's his name?" }] }
]
}
}
]
},
{
"id": "qzge99trjqvp7vjmjo6rk56o",
"title": "",
"graphCoordinates": { "x": 1140.34375, "y": 328.5390625 },
"blocks": [
{
"id": "jyi9t11totyrw2jeohfhvfw1",
"type": "Set variable",
"options": {
"variableId": "vhl1s7qoksnw7r8b1soocxwsd",
"expressionToEvaluate": "she"
}
},
{
"id": "f9qyzjo67x7zen5q4xih3xv2",
"outgoingEdgeId": "c6x6fubn2qu5vvgfc6d14krl",
"type": "text",
"content": {
"richText": [
{ "type": "p", "children": [{ "text": "What's her name?" }] }
]
}
}
]
},
{
"id": "eq1tnkdfxxf8q08vxckl3md6",
"title": "Name",
"graphCoordinates": { "x": 1501.890625, "y": 169.65234375 },
"blocks": [
{
"id": "kxzi32ioxwqpdy9yy0ktoavu",
"outgoingEdgeId": "g4do01p1scej1trqlbidbrw1",
"type": "text input",
"options": {
"variableId": "vgl2m65vej3cjwqvkawnpih2l"
}
}
]
},
{
"id": "xgulc4hfxlmjmr288ghillwz",
"title": "Age",
"graphCoordinates": { "x": 1846.419374527324, "y": 168.0560932773236 },
"blocks": [
{
"id": "e61e41j7wdisp1yxlr78gjxs",
"type": "text",
"content": {
"richText": [
{ "type": "p", "children": [{ "text": "How cute 😊" }] }
]
}
},
{
"id": "ep4iqxpgalslj0blt71rglbv",
"type": "text",
"content": {
"richText": [
{ "type": "p", "children": [{ "text": "How old is {{Name}}?" }] }
]
}
},
{
"id": "y2fcko12ha5n9zjxickaakxt",
"type": "picture choice input",
"items": [
{
"id": "vliolql8p4vo58pvsz7olf5w",
"outgoingEdgeId": "pehpu3fo38ofsgh6b9dli0i4",
"pictureSrc": "https://images.unsplash.com/photo-1592924728350-f7d4fd5d1655?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=Mnw0MjU2MDR8MHwxfHNlYXJjaHwxNXx8cHVwcHl8ZW58MHwwfHx8MTY4MzIyNDMxOA&ixlib=rb-4.0.3&q=80&w=1080",
"title": "Less than 1 year"
},
{
"id": "b3ci3fpppgsu312gsl4hs6au",
"outgoingEdgeId": "ilvu55d6cmembesg0askzgzh",
"pictureSrc": "https://images.unsplash.com/photo-1672363340663-37526fffa24d?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=Mnw0MjU2MDR8MHwxfHNlYXJjaHwxMHx8eW91bmclMjBkb2d8ZW58MHwwfHx8MTY4MzIyNDM0OA&ixlib=rb-4.0.3&q=80&w=1080",
"title": "1-5 years"
},
{
"id": "asi8dmhlwnysvm4tmvoipglz",
"outgoingEdgeId": "kvlz0ly8o4h99997ijiejwe8",
"pictureSrc": "https://images.unsplash.com/photo-1587300003388-59208cc962cb?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=Mnw0MjU2MDR8MHwxfHNlYXJjaHwzfHxkb2d8ZW58MHwwfHx8MTY4MzIyNDEwNg&ixlib=rb-4.0.3&q=80&w=1080",
"title": "5-10 years"
},
{
"id": "w9eeiclycv7nm0ennaxbxo1d",
"outgoingEdgeId": "y8v7vkh236e4o4f2latpb7mr",
"pictureSrc": "https://images.unsplash.com/photo-1553531009-7e4b807a0673?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=Mnw0MjU2MDR8MHwxfHNlYXJjaHw4fHxvbGQlMjBkb2d8ZW58MHwwfHx8MTY4MzIyNDQxNw&ixlib=rb-4.0.3&q=80&w=1080",
"title": "Above 10 years"
}
]
}
]
},
{
"id": "s4cccw69brg5ipyakvsoaioo",
"title": "Spayed",
"graphCoordinates": { "x": 2535.586058093481, "y": 164.2060504876776 },
"blocks": [
{
"id": "zw0mfpqem8eib75qs5brnfnu",
"type": "text",
"content": {
"richText": [
{
"type": "p",
"children": [{ "text": "Is {{Pronoun}} spayed or neutered" }]
}
]
}
},
{
"id": "w8l8qekmkjwdct0f73f64yke",
"type": "choice input",
"items": [
{
"id": "njc0kol8iicj5xo06gezhl52",
"outgoingEdgeId": "bindxs5p6lbkszkuw7rhpvh1",
"content": "❌ No"
},
{
"id": "jp5k0mx1drijt7k1v4a2z6t8",
"outgoingEdgeId": "igwjs895n7q48h47xhpc90wc",
"content": "✅ Yes"
}
]
}
]
},
{
"id": "j19dlmdh2ojntwk1lzqemo7a",
"title": "Email",
"graphCoordinates": { "x": 2989.53096827949, "y": 367.6582890794456 },
"blocks": [
{
"id": "os3ecqb05r4todaekg0206t4",
"type": "text",
"content": {
"richText": [
{
"type": "p",
"children": [{ "text": "Thank you for all this information." }]
}
]
}
},
{
"id": "v5sxfs35u83hqfsh9970flj7",
"type": "text",
"content": {
"richText": [
{
"type": "p",
"children": [
{
"text": "We can provide the best insurance for {{Name}} 👍"
}
]
}
]
}
},
{
"id": "sutyhv073mi6p80115jyu8s4",
"type": "text",
"content": {
"richText": [
{
"type": "p",
"children": [
{ "text": "On what email should we send the offer?" }
]
}
]
}
},
{
"id": "ouu081yxvf9raf522k08vr6g",
"outgoingEdgeId": "bw2ddpla0a4qggv8b7et3m12",
"type": "email input",
"options": {
"variableId": "vzhkagzjqqa0amfc78jekl2gz"
}
}
]
},
{
"id": "rly6ojrxf1oo4augnflhj0kj",
"title": "",
"graphCoordinates": { "x": 2186.904241629908, "y": 387.2160670995469 },
"blocks": [
{
"id": "cubvtqhhgvf6k9597von95bt",
"outgoingEdgeId": "wtbthu0nu61a6qijaranccfw",
"type": "Set variable",
"options": {
"variableId": "vq61f8ykwadq1pj8389qf9h91",
"expressionToEvaluate": "{{Estimated price}} + 5"
}
}
]
},
{
"id": "ggiqdlnnh0urjn8r5d0wip5u",
"title": "",
"graphCoordinates": { "x": 2892.884331508873, "y": 193.3583588107446 },
"blocks": [
{
"id": "ww4zmawu2jbvrykqwqq7fnh5",
"outgoingEdgeId": "kuh8vfaq0nazrtpkif9pzrpu",
"type": "Set variable",
"options": {
"variableId": "vq61f8ykwadq1pj8389qf9h91",
"expressionToEvaluate": "{{Estimated price}} + 20"
}
}
]
},
{
"id": "trjrsr2xpg0idmldl9pwcqry",
"title": "",
"graphCoordinates": { "x": 2187.765700621067, "y": 522.8303147750385 },
"blocks": [
{
"id": "gdujudl5bf90oayj6z96ghv8",
"outgoingEdgeId": "dvaakgyx7rteqs23qxz8uqx8",
"type": "Set variable",
"options": {
"variableId": "vq61f8ykwadq1pj8389qf9h91",
"expressionToEvaluate": "{{Estimated price}} + 10"
}
}
]
},
{
"id": "ykjr48s18zp8a0tiwik18mum",
"title": "",
"graphCoordinates": { "x": 2187.927544552159, "y": 661.0263366270658 },
"blocks": [
{
"id": "sevhy7y6pkbss80rph5blunn",
"outgoingEdgeId": "opipj5xi262umvn98kkga4tx",
"type": "Set variable",
"options": {
"variableId": "vq61f8ykwadq1pj8389qf9h91",
"expressionToEvaluate": "{{Estimated price}} + 25"
}
}
]
},
{
"id": "c1x4umwx2g4j39peylr9rfor",
"title": "",
"graphCoordinates": { "x": 2189.67995427391, "y": 796.4435670811636 },
"blocks": [
{
"id": "bw9d73ypbvc83ltqme9kwwzc",
"outgoingEdgeId": "ozsoiu70hbqp5pqucstlnh3b",
"type": "Set variable",
"options": {
"variableId": "vq61f8ykwadq1pj8389qf9h91",
"expressionToEvaluate": "{{Estimated price}} + 55"
}
}
]
},
{
"id": "lmrd5falh8nkdizqy9obpeqi",
"title": "Bye",
"graphCoordinates": { "x": 3340.474508360785, "y": 365.6627012838016 },
"blocks": [
{
"id": "ddpum0cjrd2bredvakte914k",
"type": "text",
"content": {
"richText": [
{ "type": "p", "children": [{ "text": "Perfect 👌" }] }
]
}
},
{
"id": "qabtk59h81p0fv14au584ay8",
"type": "text",
"content": {
"richText": [
{
"type": "p",
"children": [
{
"text": "In the mean time feel free to check out what other services we are offering at Dogz"
}
]
}
]
}
}
]
}
],
"edges": [
{
"id": "u0009iy3sakdgh3k1x41i5yr",
"from": { "eventId": "f4ef28wxteh0wdjgubtojnkr" },
"to": { "groupId": "av0jzkh3qhgdyjrouvl2zywe" }
},
{
"id": "vl23l0ak8w2qxj9wrgxhznz3",
"from": {
"blockId": "dtvbio4qytr3iojc7tq2quvy",
"itemId": "m7l8u4y5vmwozvdtsmhq3q49"
},
"to": { "groupId": "dh3wz001jaclg8ifc1vhovlq" }
},
{
"id": "moj9ezfl6bvpr4aj76cztkiu",
"from": { "blockId": "f2902yy6o00fwe5h4xihrntj" },
"to": { "groupId": "ynt0ya95bvuqj8mf39e938k4" }
},
{
"id": "wciafstvwt3m4lhrejlgl0s0",
"from": {
"blockId": "zuza6om08ubafgqhbadwv60i",
"itemId": "mrca2ini7z81ik4k1o9g3a1s"
},
"to": { "groupId": "c59xwfc18i4xjpaeu9dzrjcu" }
},
{
"id": "f60ldz2g58kfkvsfmnf39fjb",
"from": {
"blockId": "zuza6om08ubafgqhbadwv60i",
"itemId": "ymxxgoxxbfcmnhudwmerfgbx"
},
"to": { "groupId": "qzge99trjqvp7vjmjo6rk56o" }
},
{
"id": "to4im28nzrg3yk0ama07l2oz",
"from": { "blockId": "kqbiaq87al2uq07vuno69syo" },
"to": { "groupId": "eq1tnkdfxxf8q08vxckl3md6" }
},
{
"id": "c6x6fubn2qu5vvgfc6d14krl",
"from": { "blockId": "f9qyzjo67x7zen5q4xih3xv2" },
"to": { "groupId": "eq1tnkdfxxf8q08vxckl3md6" }
},
{
"id": "g4do01p1scej1trqlbidbrw1",
"from": { "blockId": "kxzi32ioxwqpdy9yy0ktoavu" },
"to": { "groupId": "xgulc4hfxlmjmr288ghillwz" }
},
{
"id": "pehpu3fo38ofsgh6b9dli0i4",
"from": {
"blockId": "y2fcko12ha5n9zjxickaakxt",
"itemId": "vliolql8p4vo58pvsz7olf5w"
},
"to": { "groupId": "rly6ojrxf1oo4augnflhj0kj" }
},
{
"id": "ilvu55d6cmembesg0askzgzh",
"from": {
"blockId": "y2fcko12ha5n9zjxickaakxt",
"itemId": "b3ci3fpppgsu312gsl4hs6au"
},
"to": { "groupId": "trjrsr2xpg0idmldl9pwcqry" }
},
{
"id": "kvlz0ly8o4h99997ijiejwe8",
"from": {
"blockId": "y2fcko12ha5n9zjxickaakxt",
"itemId": "asi8dmhlwnysvm4tmvoipglz"
},
"to": { "groupId": "ykjr48s18zp8a0tiwik18mum" }
},
{
"id": "y8v7vkh236e4o4f2latpb7mr",
"from": {
"blockId": "y2fcko12ha5n9zjxickaakxt",
"itemId": "w9eeiclycv7nm0ennaxbxo1d"
},
"to": { "groupId": "c1x4umwx2g4j39peylr9rfor" }
},
{
"id": "wtbthu0nu61a6qijaranccfw",
"from": { "blockId": "cubvtqhhgvf6k9597von95bt" },
"to": { "groupId": "s4cccw69brg5ipyakvsoaioo" }
},
{
"id": "dvaakgyx7rteqs23qxz8uqx8",
"from": { "blockId": "gdujudl5bf90oayj6z96ghv8" },
"to": { "groupId": "s4cccw69brg5ipyakvsoaioo" }
},
{
"id": "opipj5xi262umvn98kkga4tx",
"from": { "blockId": "sevhy7y6pkbss80rph5blunn" },
"to": { "groupId": "s4cccw69brg5ipyakvsoaioo" }
},
{
"id": "ozsoiu70hbqp5pqucstlnh3b",
"from": { "blockId": "bw9d73ypbvc83ltqme9kwwzc" },
"to": { "groupId": "s4cccw69brg5ipyakvsoaioo" }
},
{
"id": "bindxs5p6lbkszkuw7rhpvh1",
"from": {
"blockId": "w8l8qekmkjwdct0f73f64yke",
"itemId": "njc0kol8iicj5xo06gezhl52"
},
"to": { "groupId": "ggiqdlnnh0urjn8r5d0wip5u" }
},
{
"id": "igwjs895n7q48h47xhpc90wc",
"from": {
"blockId": "w8l8qekmkjwdct0f73f64yke",
"itemId": "jp5k0mx1drijt7k1v4a2z6t8"
},
"to": { "groupId": "j19dlmdh2ojntwk1lzqemo7a" }
},
{
"id": "kuh8vfaq0nazrtpkif9pzrpu",
"from": { "blockId": "ww4zmawu2jbvrykqwqq7fnh5" },
"to": { "groupId": "j19dlmdh2ojntwk1lzqemo7a" }
},
{
"id": "bw2ddpla0a4qggv8b7et3m12",
"from": { "blockId": "ouu081yxvf9raf522k08vr6g" },
"to": { "groupId": "lmrd5falh8nkdizqy9obpeqi" }
}
],
"variables": [
{ "id": "vgl2m65vej3cjwqvkawnpih2l", "name": "Name" },
{ "id": "vhl1s7qoksnw7r8b1soocxwsd", "name": "Pronoun" },
{ "id": "vq61f8ykwadq1pj8389qf9h91", "name": "Estimated price" },
{ "id": "vzhkagzjqqa0amfc78jekl2gz", "name": "Email" }
],
"theme": {},
"selectedThemeTemplateId": null,
"settings": {},
"createdAt": "2023-11-07T07:16:16.866Z",
"updatedAt": "2023-11-07T07:16:16.866Z",
"icon": "🐶",
"folderId": null,
"publicId": null,
"customDomain": null,
"workspaceId": "proWorkspace",
"resultsTablePreferences": null,
"isArchived": false,
"isClosed": false,
"whatsAppCredentialsId": null
}