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

631 lines
18 KiB
JSON

{
"version": "6",
"id": "clon58wkg00051avnkor66u6m",
"name": "Lead Scoring",
"events": [
{
"id": "cl1seoz560000xk1ags8s67b0",
"outgoingEdgeId": "cl1seraz9001z2e6e85zrx08l",
"graphCoordinates": { "x": 0, "y": 0 },
"type": "start"
}
],
"groups": [
{
"id": "cl1sep1c5001w2e6e77bb1uwb",
"title": "Welcome",
"graphCoordinates": { "x": 0, "y": 171 },
"blocks": [
{
"id": "cl1sep1cc001x2e6eikrwf9jy",
"type": "text",
"content": {
"richText": [{ "type": "p", "children": [{ "text": "Hi! 👋" }] }]
}
},
{
"id": "cl1sep7jn001y2e6ez7ee7eiw",
"type": "text",
"content": {
"richText": [
{
"type": "p",
"children": [
{ "text": "I'm glad you are intersted in our services." }
]
}
]
}
},
{
"id": "cl1seyazl00252e6e3zsbosvm",
"type": "text",
"content": {
"richText": [
{
"type": "p",
"children": [
{ "text": "I'll need to know a little more about you" }
]
}
]
}
},
{
"id": "cl1sezuul002a2e6ex7nc444j",
"outgoingEdgeId": "cl1sf8v96003k2e6e2rbcfjmz",
"type": "Set variable",
"options": {
"variableId": "vcl1sezzln002b2e6e6ssxh9bf",
"expressionToEvaluate": "0"
}
}
]
},
{
"id": "cl1sern8w00202e6ez69l190j",
"title": "Q1",
"graphCoordinates": { "x": 377, "y": 166 },
"blocks": [
{
"id": "cl1sern9200212e6esrid307i",
"type": "text",
"content": {
"richText": [
{
"type": "p",
"children": [{ "text": "Do you work with a specific company?" }]
}
]
}
},
{
"id": "cl1ses31000222e6ebrb4wxo0",
"type": "choice input",
"items": [
{
"id": "cl1ses31100232e6eq3nnp2mm",
"outgoingEdgeId": "cl1sezo4z00292e6ean8s487x",
"content": "Yes"
},
{
"id": "cl1ses3y400242e6e1qjwkhq4",
"outgoingEdgeId": "cl1sfertf004i2e6epf68fwri",
"content": "No"
}
]
}
]
},
{
"id": "cl1sez6zd00262e6ebh59k1bs",
"title": "Company",
"graphCoordinates": { "x": 748, "y": 135 },
"blocks": [
{
"id": "cl1sf04yl002c2e6eaeu463cq",
"type": "Set variable",
"options": {
"variableId": "vcl1sezzln002b2e6e6ssxh9bf",
"expressionToEvaluate": "{{Lead Score}} + 10"
}
},
{
"id": "cl1sez6zt00272e6ecsefq05y",
"type": "text",
"content": {
"richText": [
{ "type": "p", "children": [{ "text": "Which company?" }] }
]
}
},
{
"id": "cl1sezlw700282e6eozkzmed0",
"outgoingEdgeId": "cl1sf1mm0002h2e6eurv21l5n",
"type": "text input",
"options": {
"variableId": "vcl1sf93s2003l2e6eojomb66g"
}
}
]
},
{
"id": "cl1sf0ogu002d2e6edyhcuu6f",
"title": "Q2",
"graphCoordinates": { "x": 1096, "y": -62 },
"blocks": [
{
"id": "cl1sf0ohc002e2e6egrjoj10z",
"type": "text",
"content": {
"richText": [
{
"type": "p",
"children": [
{ "text": "How many employees is your team composed of?" }
]
}
]
}
},
{
"id": "cl1sf1er7002f2e6eakhc25yy",
"type": "number input",
"options": {
"variableId": "vcl1sf1ko5002g2e6egjmyb16v"
}
},
{
"id": "cl1sf1vkf002j2e6e971somqx",
"type": "Condition",
"items": [
{
"id": "cl1sf1vkg002k2e6ec54p0s4v",
"outgoingEdgeId": "cl1sf35fh002t2e6e8u68r9gz",
"content": {
"comparisons": [
{
"id": "cl1sf1y2a002l2e6eum6kcapg",
"variableId": "vcl1sf1ko5002g2e6egjmyb16v",
"comparisonOperator": "Greater than",
"value": "30"
}
]
}
}
]
},
{
"id": "cl1sf2iix002n2e6egibs95yb",
"outgoingEdgeId": "cl1sfen6a004f2e6estkfooss",
"type": "Condition",
"items": [
{
"id": "cl1sf2iix002o2e6eai567rnj",
"outgoingEdgeId": "cl1sf37rv002x2e6e7wz3lawd",
"content": {
"comparisons": [
{
"id": "cl1sf2jmf002p2e6exertfrjq",
"variableId": "vcl1sf1ko5002g2e6egjmyb16v",
"value": "10"
}
]
}
}
]
}
]
},
{
"id": "cl1sf2wnu002r2e6ehdp859qv",
"title": "Add 20",
"graphCoordinates": { "x": 1458, "y": -72 },
"blocks": [
{
"id": "cl1sf2wom002s2e6e8cmcnhpn",
"outgoingEdgeId": "cl1sfeq3f004h2e6eglhjyx2o",
"type": "Set variable",
"options": {
"variableId": "vcl1sezzln002b2e6e6ssxh9bf",
"expressionToEvaluate": "{{Lead Score}} + 20"
}
}
]
},
{
"id": "cl1sf36ia002u2e6e16ifow0z",
"title": "Add 10",
"graphCoordinates": { "x": 1458, "y": 88 },
"blocks": [
{
"id": "cl1sf36ib002v2e6ejyyrrjnh",
"outgoingEdgeId": "cl1sfeog5004g2e6eiil842nb",
"type": "Set variable",
"options": {
"variableId": "vcl1sezzln002b2e6e6ssxh9bf",
"expressionToEvaluate": "{{Lead Score}} + 10"
}
}
]
},
{
"id": "cl1sf4qk500332e6e8gs5mn3t",
"title": "Q4",
"graphCoordinates": { "x": 2442.929831215626, "y": 391 },
"blocks": [
{
"id": "cl1sf4ql500342e6ebj863aex",
"type": "text",
"content": {
"richText": [
{ "type": "p", "children": [{ "text": "Where are you based?" }] }
]
}
},
{
"id": "cl1sf4z8n00352e6ejypaeinl",
"type": "text input",
"options": {
"labels": {
"placeholder": "Type your country..."
},
"variableId": "vcl1sf525q00362e6eoyosycte"
}
},
{
"id": "cl1sf738d003c2e6eswslikio",
"outgoingEdgeId": "cl1sf9acz003n2e6ekwjq7209",
"type": "Condition",
"items": [
{
"id": "cl1sf738d003d2e6eqpzlxh8f",
"outgoingEdgeId": "cl1sf7qlx003h2e6e60635qrt",
"content": {
"comparisons": [
{
"id": "cl1sf7704003e2e6e0r3j22bg",
"variableId": "vcl1sf525q00362e6eoyosycte",
"comparisonOperator": "Equal to",
"value": "United States"
}
]
}
}
]
}
]
},
{
"id": "cl1sf7jbi003f2e6euy48woy4",
"title": "Add 10",
"graphCoordinates": { "x": 2765.429799608067, "y": 386.7142676528225 },
"blocks": [
{
"id": "cl1sf7jcx003g2e6ec1z9xh0w",
"outgoingEdgeId": "cl1sf99bb003m2e6eywy661ww",
"type": "Set variable",
"options": {
"variableId": "vcl1sezzln002b2e6e6ssxh9bf",
"expressionToEvaluate": "10"
}
}
]
},
{
"id": "cl1sf85am003i2e6e1yq8eoa7",
"title": "Filtering",
"graphCoordinates": { "x": 2953.786585751312, "y": 570.3154133255522 },
"blocks": [
{
"id": "cl1sf85bm003j2e6e04d210vs",
"type": "text",
"content": {
"richText": [
{
"type": "p",
"children": [
{ "text": "Thank you for answering these questions" }
]
}
]
}
},
{
"id": "cl1sfat0h003p2e6e7j0hpilh",
"outgoingEdgeId": "cl1sfgtau004n2e6ev68sikcr",
"type": "Condition",
"items": [
{
"id": "cl1sfat0h003q2e6eyx6vxe0f",
"outgoingEdgeId": "cl1sfg9fc004k2e6egywpim9v",
"content": {
"comparisons": [
{
"id": "cl1sfau7i003r2e6e3me45rr3",
"variableId": "vcl1sezzln002b2e6e6ssxh9bf",
"comparisonOperator": "Greater than",
"value": "20"
}
]
}
}
]
}
]
},
{
"id": "cl1sfbbv0003s2e6eheyhv7ke",
"title": "Q3",
"graphCoordinates": { "x": 1632.857386686895, "y": 465.7855110942534 },
"blocks": [
{
"id": "cl1sfcqjw003z2e6ebmyzey4o",
"type": "text",
"content": {
"richText": [
{ "type": "p", "children": [{ "text": "What's your job role?" }] }
]
}
},
{
"id": "cl1sfbbw3003t2e6e16ec9w29",
"outgoingEdgeId": "cl1sfek9r004e2e6elkh3h7a2",
"type": "choice input",
"items": [
{ "id": "cl1sfbbw3003u2e6e7luhj0n1", "content": "UI/UX Designer" },
{ "id": "cl1sfbq6z003v2e6egnctk2n2", "content": "Product Owner" },
{
"id": "cl1sfbtz8003w2e6eodbt4ogs",
"outgoingEdgeId": "cl1sfebs9004a2e6ere0zokyo",
"content": "Marketing Officer"
},
{
"id": "cl1sfc545003x2e6e833juo6m",
"outgoingEdgeId": "cl1sfedcd004b2e6eerh8hz33",
"content": "Developer"
}
]
}
]
},
{
"id": "cl1sfdroa00452e6e5o458z9h",
"title": "Add 20",
"graphCoordinates": { "x": 1983.143182249194, "y": 82.85612238447435 },
"blocks": [
{
"id": "cl1sfdrpi00462e6emfd9sj14",
"outgoingEdgeId": "cl1sfeg2k004c2e6eu9rjnski",
"type": "Set variable",
"options": {
"variableId": "vcl1sezzln002b2e6e6ssxh9bf",
"expressionToEvaluate": "{{Lead Score}} + 20"
}
}
]
},
{
"id": "cl1sfe2kn00472e6ead4qs2d9",
"title": "Add 10",
"graphCoordinates": { "x": 1984.285605916936, "y": 240.8562488147158 },
"blocks": [
{
"id": "cl1sfe2kn00482e6eukp8r9bj",
"outgoingEdgeId": "cl1sfeik5004d2e6ejj03f1gn",
"type": "Set variable",
"options": {
"variableId": "vcl1sezzln002b2e6e6ssxh9bf",
"expressionToEvaluate": "{{Lead Score}} + 20"
}
}
]
},
{
"id": "cl1sffxet004j2e6ec6gfbffh",
"title": "Conclusion - Qualified",
"graphCoordinates": { "x": 3350.087494027719, "y": 509.7735663944507 },
"blocks": [
{
"id": "cl1sfgwox004o2e6evzi0n7hk",
"type": "text",
"content": {
"richText": [
{
"type": "p",
"children": [
{
"text": "Our service is specifically designed for your situation."
}
]
}
]
}
},
{
"id": "cl1sfhz4f004p2e6esidqktmr",
"type": "text",
"content": {
"richText": [
{
"type": "p",
"children": [{ "text": "We'll get back to you ASAP. 👋" }]
}
]
}
}
]
},
{
"id": "cl1sfgjlr004l2e6erykli1ud",
"title": "Conclusion - Not qualified",
"graphCoordinates": { "x": 3352.894339234574, "y": 786.5865419115444 },
"blocks": [
{
"id": "cl1sfgjnr004m2e6e63sqh0dh",
"type": "text",
"content": {
"richText": [
{
"type": "p",
"children": [
{ "text": "Our service doesn't seem to suit your need." }
]
}
]
}
},
{
"id": "cl1sfikh5004q2e6elyvzgd0s",
"type": "text",
"content": {
"richText": [
{
"type": "p",
"children": [
{ "text": "We'll still send you valuable content by email." }
]
}
]
}
},
{
"id": "cl1sfitz4004r2e6e3ge4x7uy",
"type": "text",
"content": {
"richText": [
{ "type": "p", "children": [{ "text": "Bye bye 👋" }] }
]
}
}
]
}
],
"edges": [
{
"id": "cl1seraz9001z2e6e85zrx08l",
"from": { "eventId": "cl1seoz560000xk1ags8s67b0" },
"to": { "groupId": "cl1sep1c5001w2e6e77bb1uwb" }
},
{
"id": "cl1sezo4z00292e6ean8s487x",
"from": {
"blockId": "cl1ses31000222e6ebrb4wxo0",
"itemId": "cl1ses31100232e6eq3nnp2mm"
},
"to": { "groupId": "cl1sez6zd00262e6ebh59k1bs" }
},
{
"id": "cl1sf1mm0002h2e6eurv21l5n",
"from": { "blockId": "cl1sezlw700282e6eozkzmed0" },
"to": { "groupId": "cl1sf0ogu002d2e6edyhcuu6f" }
},
{
"id": "cl1sf35fh002t2e6e8u68r9gz",
"from": {
"blockId": "cl1sf1vkf002j2e6e971somqx",
"itemId": "cl1sf1vkg002k2e6ec54p0s4v"
},
"to": { "groupId": "cl1sf2wnu002r2e6ehdp859qv" }
},
{
"id": "cl1sf37rv002x2e6e7wz3lawd",
"from": {
"blockId": "cl1sf2iix002n2e6egibs95yb",
"itemId": "cl1sf2iix002o2e6eai567rnj"
},
"to": { "groupId": "cl1sf36ia002u2e6e16ifow0z" }
},
{
"id": "cl1sf7qlx003h2e6e60635qrt",
"from": {
"blockId": "cl1sf738d003c2e6eswslikio",
"itemId": "cl1sf738d003d2e6eqpzlxh8f"
},
"to": { "groupId": "cl1sf7jbi003f2e6euy48woy4" }
},
{
"id": "cl1sf8v96003k2e6e2rbcfjmz",
"from": { "blockId": "cl1sezuul002a2e6ex7nc444j" },
"to": { "groupId": "cl1sern8w00202e6ez69l190j" }
},
{
"id": "cl1sf99bb003m2e6eywy661ww",
"from": { "blockId": "cl1sf7jcx003g2e6ec1z9xh0w" },
"to": { "groupId": "cl1sf85am003i2e6e1yq8eoa7" }
},
{
"id": "cl1sf9acz003n2e6ekwjq7209",
"from": { "blockId": "cl1sf738d003c2e6eswslikio" },
"to": { "groupId": "cl1sf85am003i2e6e1yq8eoa7" }
},
{
"id": "cl1sfebs9004a2e6ere0zokyo",
"from": {
"blockId": "cl1sfbbw3003t2e6e16ec9w29",
"itemId": "cl1sfbtz8003w2e6eodbt4ogs"
},
"to": { "groupId": "cl1sfdroa00452e6e5o458z9h" }
},
{
"id": "cl1sfedcd004b2e6eerh8hz33",
"from": {
"blockId": "cl1sfbbw3003t2e6e16ec9w29",
"itemId": "cl1sfc545003x2e6e833juo6m"
},
"to": { "groupId": "cl1sfe2kn00472e6ead4qs2d9" }
},
{
"id": "cl1sfeg2k004c2e6eu9rjnski",
"from": { "blockId": "cl1sfdrpi00462e6emfd9sj14" },
"to": { "groupId": "cl1sf4qk500332e6e8gs5mn3t" }
},
{
"id": "cl1sfeik5004d2e6ejj03f1gn",
"from": { "blockId": "cl1sfe2kn00482e6eukp8r9bj" },
"to": { "groupId": "cl1sf4qk500332e6e8gs5mn3t" }
},
{
"id": "cl1sfek9r004e2e6elkh3h7a2",
"from": { "blockId": "cl1sfbbw3003t2e6e16ec9w29" },
"to": { "groupId": "cl1sf4qk500332e6e8gs5mn3t" }
},
{
"id": "cl1sfen6a004f2e6estkfooss",
"from": { "blockId": "cl1sf2iix002n2e6egibs95yb" },
"to": { "groupId": "cl1sfbbv0003s2e6eheyhv7ke" }
},
{
"id": "cl1sfeog5004g2e6eiil842nb",
"from": { "blockId": "cl1sf36ib002v2e6ejyyrrjnh" },
"to": { "groupId": "cl1sfbbv0003s2e6eheyhv7ke" }
},
{
"id": "cl1sfeq3f004h2e6eglhjyx2o",
"from": { "blockId": "cl1sf2wom002s2e6e8cmcnhpn" },
"to": { "groupId": "cl1sfbbv0003s2e6eheyhv7ke" }
},
{
"id": "cl1sfertf004i2e6epf68fwri",
"from": {
"blockId": "cl1ses31000222e6ebrb4wxo0",
"itemId": "cl1ses3y400242e6e1qjwkhq4"
},
"to": { "groupId": "cl1sfbbv0003s2e6eheyhv7ke" }
},
{
"id": "cl1sfg9fc004k2e6egywpim9v",
"from": {
"blockId": "cl1sfat0h003p2e6e7j0hpilh",
"itemId": "cl1sfat0h003q2e6eyx6vxe0f"
},
"to": { "groupId": "cl1sffxet004j2e6ec6gfbffh" }
},
{
"id": "cl1sfgtau004n2e6ev68sikcr",
"from": { "blockId": "cl1sfat0h003p2e6e7j0hpilh" },
"to": { "groupId": "cl1sfgjlr004l2e6erykli1ud" }
}
],
"variables": [
{ "id": "vcl1sezzln002b2e6e6ssxh9bf", "name": "Lead Score" },
{ "id": "vcl1sf1ko5002g2e6egjmyb16v", "name": "Team size" },
{ "id": "vcl1sf525q00362e6eoyosycte", "name": "Country" },
{ "id": "vcl1sf93s2003l2e6eojomb66g", "name": "Company" }
],
"theme": {},
"selectedThemeTemplateId": null,
"settings": {},
"createdAt": "2023-11-06T16:55:57.664Z",
"updatedAt": "2023-11-06T16:55:57.664Z",
"icon": "🏆",
"folderId": null,
"publicId": null,
"customDomain": null,
"workspaceId": "proWorkspace",
"resultsTablePreferences": null,
"isArchived": false,
"isClosed": false,
"whatsAppCredentialsId": null
}