2
0

refactor: ♻️ Rename step to block

This commit is contained in:
Baptiste Arnaud
2022-06-11 07:27:38 +02:00
parent 8751766d0e
commit 2df8338505
297 changed files with 4292 additions and 3989 deletions

View File

@ -5,15 +5,15 @@
"name": "My typebot",
"publishedTypebotId": null,
"folderId": null,
"blocks": [
"groups": [
{
"id": "k6kY6gwRE6noPoYQNGzgUq",
"steps": [
"blocks": [
{
"id": "22HP69iipkLjJDTUcc1AWW",
"type": "start",
"label": "Start",
"blockId": "k6kY6gwRE6noPoYQNGzgUq",
"groupId": "k6kY6gwRE6noPoYQNGzgUq",
"outgoingEdgeId": "oNvqaqNExdSH2kKEhKZHuE"
}
],
@ -22,11 +22,11 @@
},
{
"id": "kinRXxYop2X4d7F9qt8WNB",
"steps": [
"blocks": [
{
"id": "sc1y8VwDabNJgiVTBi4qtif",
"type": "text",
"blockId": "kinRXxYop2X4d7F9qt8WNB",
"groupId": "kinRXxYop2X4d7F9qt8WNB",
"content": {
"html": "<div>Welcome to <span class=\"slate-bold\">AA</span> (Awesome Agency)</div>",
"richText": [
@ -45,7 +45,7 @@
{
"id": "s7YqZTBeyCa4Hp3wN2j922c",
"type": "image",
"blockId": "kinRXxYop2X4d7F9qt8WNB",
"groupId": "kinRXxYop2X4d7F9qt8WNB",
"content": {
"url": "https://media2.giphy.com/media/XD9o33QG9BoMis7iM4/giphy.gif?cid=fe3852a3ihg8rvipzzky5lybmdyq38fhke2tkrnshwk52c7d&rid=giphy.gif&ct=g"
}
@ -57,11 +57,11 @@
{
"id": "hQw2zbp7FDX7XYK9cFpbgC",
"type": 0,
"stepId": "sbjZWLJGVkHAkDqS4JQeGow",
"blockId": "sbjZWLJGVkHAkDqS4JQeGow",
"content": "Hi!"
}
],
"blockId": "kinRXxYop2X4d7F9qt8WNB",
"groupId": "kinRXxYop2X4d7F9qt8WNB",
"options": { "buttonLabel": "Send", "isMultipleChoice": false },
"outgoingEdgeId": "i51YhHpk1dtSyduFNf5Wim"
}
@ -71,11 +71,11 @@
},
{
"id": "o4SH1UtKANnW5N5D67oZUz",
"steps": [
"blocks": [
{
"id": "sxeYubYN6XzhAfG7m9Fivhc",
"type": "text",
"blockId": "o4SH1UtKANnW5N5D67oZUz",
"groupId": "o4SH1UtKANnW5N5D67oZUz",
"content": {
"html": "<div>Great! Nice to meet you {{Name}}</div>",
"richText": [
@ -90,7 +90,7 @@
{
"id": "scQ5kduafAtfP9T8SHUJnGi",
"type": "text",
"blockId": "o4SH1UtKANnW5N5D67oZUz",
"groupId": "o4SH1UtKANnW5N5D67oZUz",
"content": {
"html": "<div>What&#x27;s the best email we can reach you at?</div>",
"richText": [
@ -107,7 +107,7 @@
{
"id": "snbsad18Bgry8yZ8DZCfdFD",
"type": "email input",
"blockId": "o4SH1UtKANnW5N5D67oZUz",
"groupId": "o4SH1UtKANnW5N5D67oZUz",
"options": {
"labels": { "button": "Send", "placeholder": "Type your email..." },
"variableId": "3VFChNVSCXQ2rXv4DrJ8Ah"
@ -120,11 +120,11 @@
},
{
"id": "q5dAhqSTCaNdiGSJm9B9Rw",
"steps": [
"blocks": [
{
"id": "sgtE2Sy7cKykac9B223Kq9R",
"type": "text",
"blockId": "q5dAhqSTCaNdiGSJm9B9Rw",
"groupId": "q5dAhqSTCaNdiGSJm9B9Rw",
"content": {
"html": "<div>What&#x27;s your name?</div>",
"richText": [
@ -136,7 +136,7 @@
{
"id": "sqEsMo747LTDnY9FjQcEwUv",
"type": "text input",
"blockId": "q5dAhqSTCaNdiGSJm9B9Rw",
"groupId": "q5dAhqSTCaNdiGSJm9B9Rw",
"options": {
"isLong": false,
"labels": {
@ -153,11 +153,11 @@
},
{
"id": "fKqRz7iswk7ULaj5PJocZL",
"steps": [
"blocks": [
{
"id": "su7HceVXWyTCzi2vv3m4QbK",
"type": "text",
"blockId": "fKqRz7iswk7ULaj5PJocZL",
"groupId": "fKqRz7iswk7ULaj5PJocZL",
"content": {
"html": "<div>What services are you interested in?</div>",
"richText": [
@ -176,29 +176,29 @@
{
"id": "fnLCBF4NdraSwcubnBhk8H",
"type": 0,
"stepId": "s5VQGsVF4hQgziQsXVdwPDW",
"blockId": "s5VQGsVF4hQgziQsXVdwPDW",
"content": "Website dev"
},
{
"id": "a782h8ynMouY84QjH7XSnR",
"type": 0,
"stepId": "s5VQGsVF4hQgziQsXVdwPDW",
"blockId": "s5VQGsVF4hQgziQsXVdwPDW",
"content": "Content Marketing"
},
{
"id": "jGvh94zBByvVFpSS3w97zY",
"type": 0,
"stepId": "s5VQGsVF4hQgziQsXVdwPDW",
"blockId": "s5VQGsVF4hQgziQsXVdwPDW",
"content": "Social Media"
},
{
"id": "6PRLbKUezuFmwWtLVbvAQ7",
"type": 0,
"stepId": "s5VQGsVF4hQgziQsXVdwPDW",
"blockId": "s5VQGsVF4hQgziQsXVdwPDW",
"content": "UI / UX Design"
}
],
"blockId": "fKqRz7iswk7ULaj5PJocZL",
"groupId": "fKqRz7iswk7ULaj5PJocZL",
"options": { "buttonLabel": "Send", "isMultipleChoice": true },
"outgoingEdgeId": "ohTRakmcYJ7GdFWRZrWRjk"
}
@ -208,11 +208,11 @@
},
{
"id": "7qHBEyCMvKEJryBHzPmHjV",
"steps": [
"blocks": [
{
"id": "sqR8Sz9gW21aUYKtUikq7qZ",
"type": "text",
"blockId": "7qHBEyCMvKEJryBHzPmHjV",
"groupId": "7qHBEyCMvKEJryBHzPmHjV",
"content": {
"html": "<div>Can you tell me a bit more about your needs?</div>",
"richText": [
@ -229,7 +229,7 @@
{
"id": "sqFy2G3C1mh9p6s3QBdSS5x",
"type": "text input",
"blockId": "7qHBEyCMvKEJryBHzPmHjV",
"groupId": "7qHBEyCMvKEJryBHzPmHjV",
"options": {
"isLong": true,
"labels": { "button": "Send", "placeholder": "Type your answer..." }
@ -242,11 +242,11 @@
},
{
"id": "vF7AD7zSAj7SNvN3gr9N94",
"steps": [
"blocks": [
{
"id": "seLegenCgUwMopRFeAefqZ7",
"type": "text",
"blockId": "vF7AD7zSAj7SNvN3gr9N94",
"groupId": "vF7AD7zSAj7SNvN3gr9N94",
"content": {
"html": "<div>Perfect!</div>",
"richText": [{ "type": "p", "children": [{ "text": "Perfect!" }] }],
@ -256,7 +256,7 @@
{
"id": "s779Q1y51aVaDUJVrFb16vv",
"type": "text",
"blockId": "vF7AD7zSAj7SNvN3gr9N94",
"groupId": "vF7AD7zSAj7SNvN3gr9N94",
"content": {
"html": "<div>We&#x27;ll get back to you at {{Email}}</div>",
"richText": [
@ -280,50 +280,50 @@
"edges": [
{
"id": "oNvqaqNExdSH2kKEhKZHuE",
"to": { "blockId": "kinRXxYop2X4d7F9qt8WNB" },
"to": { "groupId": "kinRXxYop2X4d7F9qt8WNB" },
"from": {
"stepId": "22HP69iipkLjJDTUcc1AWW",
"blockId": "k6kY6gwRE6noPoYQNGzgUq"
"blockId": "22HP69iipkLjJDTUcc1AWW",
"groupId": "k6kY6gwRE6noPoYQNGzgUq"
}
},
{
"id": "i51YhHpk1dtSyduFNf5Wim",
"to": { "blockId": "q5dAhqSTCaNdiGSJm9B9Rw" },
"to": { "groupId": "q5dAhqSTCaNdiGSJm9B9Rw" },
"from": {
"stepId": "sbjZWLJGVkHAkDqS4JQeGow",
"blockId": "kinRXxYop2X4d7F9qt8WNB"
"blockId": "sbjZWLJGVkHAkDqS4JQeGow",
"groupId": "kinRXxYop2X4d7F9qt8WNB"
}
},
{
"id": "4tYbERpi5Po4goVgt6rWXg",
"to": { "blockId": "o4SH1UtKANnW5N5D67oZUz" },
"to": { "groupId": "o4SH1UtKANnW5N5D67oZUz" },
"from": {
"stepId": "sqEsMo747LTDnY9FjQcEwUv",
"blockId": "q5dAhqSTCaNdiGSJm9B9Rw"
"blockId": "sqEsMo747LTDnY9FjQcEwUv",
"groupId": "q5dAhqSTCaNdiGSJm9B9Rw"
}
},
{
"id": "w3MiN1Ct38jT5NykVsgmb5",
"to": { "blockId": "fKqRz7iswk7ULaj5PJocZL" },
"to": { "groupId": "fKqRz7iswk7ULaj5PJocZL" },
"from": {
"stepId": "snbsad18Bgry8yZ8DZCfdFD",
"blockId": "o4SH1UtKANnW5N5D67oZUz"
"blockId": "snbsad18Bgry8yZ8DZCfdFD",
"groupId": "o4SH1UtKANnW5N5D67oZUz"
}
},
{
"id": "ohTRakmcYJ7GdFWRZrWRjk",
"to": { "blockId": "7qHBEyCMvKEJryBHzPmHjV" },
"to": { "groupId": "7qHBEyCMvKEJryBHzPmHjV" },
"from": {
"stepId": "s5VQGsVF4hQgziQsXVdwPDW",
"blockId": "fKqRz7iswk7ULaj5PJocZL"
"blockId": "s5VQGsVF4hQgziQsXVdwPDW",
"groupId": "fKqRz7iswk7ULaj5PJocZL"
}
},
{
"id": "sH5nUssG2XQbm6ZidGv9BY",
"to": { "blockId": "vF7AD7zSAj7SNvN3gr9N94" },
"to": { "groupId": "vF7AD7zSAj7SNvN3gr9N94" },
"from": {
"stepId": "sqFy2G3C1mh9p6s3QBdSS5x",
"blockId": "7qHBEyCMvKEJryBHzPmHjV"
"blockId": "sqFy2G3C1mh9p6s3QBdSS5x",
"groupId": "7qHBEyCMvKEJryBHzPmHjV"
}
}
],

View File

@ -5,15 +5,15 @@
"name": "My typebot",
"publishedTypebotId": "pioizXgk6U9Xtz1BdyjPFy",
"folderId": null,
"blocks": [
"groups": [
{
"id": "dpg9fjkvZs2zhNDrXavZw2",
"steps": [
"blocks": [
{
"id": "4Ez8hEpERMo48FQcH4ny8F",
"type": "start",
"label": "Start",
"blockId": "dpg9fjkvZs2zhNDrXavZw2",
"groupId": "dpg9fjkvZs2zhNDrXavZw2",
"outgoingEdgeId": "hRuNVikDAguMkxd6sRgQ7b"
}
],
@ -22,11 +22,11 @@
},
{
"id": "nrFcoNFtGcGJNifcjiEFya",
"steps": [
"blocks": [
{
"id": "sjigBF5rKat4BForNiMfPwb",
"type": "text",
"blockId": "nrFcoNFtGcGJNifcjiEFya",
"groupId": "nrFcoNFtGcGJNifcjiEFya",
"content": {
"html": "<div>As you answer this chat, you&#x27;ll see your result in the real Airtable spreadsheet</div>",
"richText": [
@ -45,7 +45,7 @@
{
"id": "sb8bz4NhtWF7zRLrfvDnXNY",
"type": "text",
"blockId": "nrFcoNFtGcGJNifcjiEFya",
"groupId": "nrFcoNFtGcGJNifcjiEFya",
"content": {
"html": "<div>You can think of it as a guestbook 😂</div>",
"richText": [
@ -62,7 +62,7 @@
{
"id": "scF3dKaGTm68y9rHSKVJVtr",
"type": "text",
"blockId": "nrFcoNFtGcGJNifcjiEFya",
"groupId": "nrFcoNFtGcGJNifcjiEFya",
"content": {
"html": "<div>Ready?</div>",
"richText": [{ "type": "p", "children": [{ "text": "Ready?" }] }],
@ -76,11 +76,11 @@
{
"id": "ewb7uVGHNHEKmgbKoLiZA6",
"type": 0,
"stepId": "su4yR8LMVu311nKJsSj3u6q",
"blockId": "su4yR8LMVu311nKJsSj3u6q",
"content": "Yeah!"
}
],
"blockId": "nrFcoNFtGcGJNifcjiEFya",
"groupId": "nrFcoNFtGcGJNifcjiEFya",
"options": { "buttonLabel": "Send", "isMultipleChoice": false },
"outgoingEdgeId": "5CjxPmqfthouJL71zCWW5X"
}
@ -90,11 +90,11 @@
},
{
"id": "9mz6QbFyQB1uMggt9YbweU",
"steps": [
"blocks": [
{
"id": "spuZqdVh1q7kHWb9gghki7q",
"type": "text",
"blockId": "9mz6QbFyQB1uMggt9YbweU",
"groupId": "9mz6QbFyQB1uMggt9YbweU",
"content": {
"html": "<div>If you have anything to say...</div>",
"richText": [
@ -109,7 +109,7 @@
{
"id": "sqvXpT1YXE3Htp6BCPvVGv3",
"type": "text input",
"blockId": "9mz6QbFyQB1uMggt9YbweU",
"groupId": "9mz6QbFyQB1uMggt9YbweU",
"options": {
"isLong": true,
"labels": {
@ -122,7 +122,7 @@
{
"id": "sti9ca1hQgmQLUgghCLqDrx",
"type": "Webhook",
"blockId": "9mz6QbFyQB1uMggt9YbweU",
"groupId": "9mz6QbFyQB1uMggt9YbweU",
"options": {
"isCustomBody": true,
"isAdvancedConfig": true,
@ -144,7 +144,7 @@
},
{
"id": "s5sGoeApf3QASX1bbPMve5q",
"blockId": "9mz6QbFyQB1uMggt9YbweU",
"groupId": "9mz6QbFyQB1uMggt9YbweU",
"type": "Code",
"options": {
"name": "Code snippet",
@ -158,11 +158,11 @@
},
{
"id": "dypuPQjb1q55tQavVzZv4e",
"steps": [
"blocks": [
{
"id": "shRqQncqJb6xsKxXV9SEQsF",
"type": "image",
"blockId": "dypuPQjb1q55tQavVzZv4e",
"groupId": "dypuPQjb1q55tQavVzZv4e",
"content": {
"url": "https://media1.giphy.com/media/l0K42u9hCg0x6XbLa/giphy.gif?cid=fe3852a3rvjsmcutyv6whx7s390gvj80b3e2rftqav11gnve&rid=giphy.gif&ct=g"
}
@ -170,7 +170,7 @@
{
"id": "s4mTU7p3Q32L2Zv6C713NAU",
"type": "text",
"blockId": "dypuPQjb1q55tQavVzZv4e",
"groupId": "dypuPQjb1q55tQavVzZv4e",
"content": {
"html": "<div>Cheers!</div>",
"richText": [{ "type": "p", "children": [{ "text": "Cheers!" }] }],
@ -183,11 +183,11 @@
},
{
"id": "m299Kw31LhXpxZLNNb7WT5",
"steps": [
"blocks": [
{
"id": "smR7LG3mAEdkxh79aBiwbkp",
"type": "text",
"blockId": "m299Kw31LhXpxZLNNb7WT5",
"groupId": "m299Kw31LhXpxZLNNb7WT5",
"content": {
"html": "<div>What&#x27;s your name?</div>",
"richText": [
@ -199,7 +199,7 @@
{
"id": "shuUtMDMw9P4iAHbz7B5SqJ",
"type": "text input",
"blockId": "m299Kw31LhXpxZLNNb7WT5",
"groupId": "m299Kw31LhXpxZLNNb7WT5",
"options": {
"isLong": false,
"labels": { "button": "Send", "placeholder": "Type your name..." },
@ -209,7 +209,7 @@
{
"id": "siZ9BsYqTZ1BCF42kLNY33G",
"type": "Webhook",
"blockId": "m299Kw31LhXpxZLNNb7WT5",
"groupId": "m299Kw31LhXpxZLNNb7WT5",
"options": {
"isCustomBody": true,
"isAdvancedConfig": true,
@ -237,7 +237,7 @@
},
{
"id": "ssHNtWrqhDcJNUDqd3oLj6r",
"blockId": "m299Kw31LhXpxZLNNb7WT5",
"groupId": "m299Kw31LhXpxZLNNb7WT5",
"type": "Code",
"options": {
"name": "Code snippet",
@ -261,34 +261,34 @@
"edges": [
{
"id": "hRuNVikDAguMkxd6sRgQ7b",
"to": { "blockId": "nrFcoNFtGcGJNifcjiEFya" },
"to": { "groupId": "nrFcoNFtGcGJNifcjiEFya" },
"from": {
"stepId": "4Ez8hEpERMo48FQcH4ny8F",
"blockId": "dpg9fjkvZs2zhNDrXavZw2"
"blockId": "4Ez8hEpERMo48FQcH4ny8F",
"groupId": "dpg9fjkvZs2zhNDrXavZw2"
}
},
{
"id": "5CjxPmqfthouJL71zCWW5X",
"to": { "blockId": "m299Kw31LhXpxZLNNb7WT5" },
"to": { "groupId": "m299Kw31LhXpxZLNNb7WT5" },
"from": {
"stepId": "su4yR8LMVu311nKJsSj3u6q",
"blockId": "nrFcoNFtGcGJNifcjiEFya"
"blockId": "su4yR8LMVu311nKJsSj3u6q",
"groupId": "nrFcoNFtGcGJNifcjiEFya"
}
},
{
"from": {
"blockId": "m299Kw31LhXpxZLNNb7WT5",
"stepId": "ssHNtWrqhDcJNUDqd3oLj6r"
"groupId": "m299Kw31LhXpxZLNNb7WT5",
"blockId": "ssHNtWrqhDcJNUDqd3oLj6r"
},
"to": { "blockId": "9mz6QbFyQB1uMggt9YbweU" },
"to": { "groupId": "9mz6QbFyQB1uMggt9YbweU" },
"id": "oHDLXGgNtGU4n4Br6QDnyB"
},
{
"from": {
"blockId": "9mz6QbFyQB1uMggt9YbweU",
"stepId": "s5sGoeApf3QASX1bbPMve5q"
"groupId": "9mz6QbFyQB1uMggt9YbweU",
"blockId": "s5sGoeApf3QASX1bbPMve5q"
},
"to": { "blockId": "dypuPQjb1q55tQavVzZv4e" },
"to": { "groupId": "dypuPQjb1q55tQavVzZv4e" },
"id": "tiFY1tFr1u5CjGrbziEtc9"
}
],