(setVariable) Add Transcription system var (#1507)

Closes #1484
This commit is contained in:
Baptiste Arnaud
2024-05-15 14:24:55 +02:00
committed by GitHub
parent ec7ff8d9ca
commit 40f21203b5
102 changed files with 2911 additions and 986 deletions

View File

@@ -1,101 +1,99 @@
{
"id": "cl0iecee90042961arm5kb0f0",
"createdAt": "2022-03-08T17:18:50.337Z",
"updatedAt": "2022-03-08T21:05:28.825Z",
"name": "Another typebot",
"folderId": null,
"groups": [
"version": "6",
"id": "qk6zz1ag2jnm3yny7fzqrbwn",
"name": "My link typebot 2",
"events": [
{
"id": "p4ByLVoKiDRyRoPHKmcTfw",
"blocks": [
{
"id": "rw6smEWEJzHKbiVKLUKFvZ",
"type": "start",
"label": "Start",
"groupId": "p4ByLVoKiDRyRoPHKmcTfw",
"outgoingEdgeId": "1z3pfiatTUHbraD2uSoA3E"
}
],
"title": "Start",
"graphCoordinates": { "x": 0, "y": 0 }
},
"outgoingEdgeId": "1z3pfiatTUHbraD2uSoA3E",
"graphCoordinates": { "x": 0, "y": 0 },
"type": "start"
}
],
"groups": [
{
"id": "bg4QEJseUsTP496H27j5k2",
"title": "Group #1",
"graphCoordinates": { "x": 366, "y": 191 },
"blocks": [
{
"id": "s8ZeBL9p5za77eBmdKECLYq",
"outgoingEdgeId": "aEBnubX4EMx4Cse6xPAR1m",
"type": "text input",
"groupId": "bg4QEJseUsTP496H27j5k2",
"options": {
"isLong": false,
"labels": { "button": "Send", "placeholder": "Type your answer..." }
},
"outgoingEdgeId": "aEBnubX4EMx4Cse6xPAR1m"
"labels": {
"placeholder": "Type your answer...",
"button": "Send"
},
"isLong": false
}
}
],
"title": "Group #1",
"graphCoordinates": { "x": 366, "y": 191 }
]
},
{
"id": "uhqCZSNbsYVFxop7Gc8xvn",
"title": "Group #2",
"graphCoordinates": { "x": 793, "y": 99 },
"blocks": [
{
"id": "smyHyeS6yaFaHHU44BNmN4n",
"type": "text",
"groupId": "uhqCZSNbsYVFxop7Gc8xvn",
"content": {
"richText": [
{ "type": "p", "children": [{ "text": "Second block" }] }
]
}
}
],
"title": "Group #2",
"graphCoordinates": { "x": 793, "y": 99 }
]
}
],
"variables": [],
"edges": [
{
"id": "1z3pfiatTUHbraD2uSoA3E",
"to": { "groupId": "bg4QEJseUsTP496H27j5k2" },
"from": {
"blockId": "rw6smEWEJzHKbiVKLUKFvZ",
"groupId": "p4ByLVoKiDRyRoPHKmcTfw"
}
"from": { "eventId": "p4ByLVoKiDRyRoPHKmcTfw" },
"to": { "groupId": "bg4QEJseUsTP496H27j5k2" }
},
{
"id": "aEBnubX4EMx4Cse6xPAR1m",
"to": { "groupId": "uhqCZSNbsYVFxop7Gc8xvn" },
"from": {
"blockId": "s8ZeBL9p5za77eBmdKECLYq",
"groupId": "bg4QEJseUsTP496H27j5k2"
}
"from": { "blockId": "s8ZeBL9p5za77eBmdKECLYq" },
"to": { "groupId": "uhqCZSNbsYVFxop7Gc8xvn" }
}
],
"variables": [],
"theme": {
"general": { "font": "Open Sans", "background": { "type": "None" } },
"chat": {
"hostBubbles": { "backgroundColor": "#F7F8FF", "color": "#303235" },
"guestBubbles": { "backgroundColor": "#FF8E21", "color": "#FFFFFF" },
"buttons": { "backgroundColor": "#0042DA", "color": "#FFFFFF" },
"inputs": {
"color": "#303235",
"backgroundColor": "#FFFFFF",
"color": "#303235",
"placeholderColor": "#9095A0"
},
"buttons": { "color": "#FFFFFF", "backgroundColor": "#0042DA" },
"hostBubbles": { "color": "#303235", "backgroundColor": "#F7F8FF" },
"guestBubbles": { "color": "#FFFFFF", "backgroundColor": "#FF8E21" }
},
"general": { "font": "Open Sans", "background": { "type": "None" } }
}
}
},
"selectedThemeTemplateId": null,
"settings": {
"general": {
"isBrandingEnabled": true,
"isNewResultOnRefreshEnabled": false
},
"typingEmulation": { "enabled": true, "speed": 300, "maxDelay": 1.5 },
"metadata": {
"description": "Build beautiful conversational forms and embed them directly in your applications without a line of code. Triple your response rate and collect answers that has more value compared to a traditional form."
},
"typingEmulation": { "speed": 300, "enabled": true, "maxDelay": 1.5 }
}
},
"createdAt": "2022-03-08T17:18:50.337Z",
"updatedAt": "2022-03-08T21:05:28.825Z",
"icon": null,
"folderId": null,
"publicId": null,
"customDomain": null
"customDomain": null,
"workspaceId": "proWorkspace",
"resultsTablePreferences": null,
"isArchived": false,
"isClosed": false,
"whatsAppCredentialsId": null,
"riskLevel": null
}

View File

@@ -0,0 +1,339 @@
{
"version": "6",
"id": "w8pny2noxxejt2kq36q3udll",
"name": "Customer Support",
"events": [
{
"id": "uG1tt8JdDyu2nju3oJ4wc1",
"outgoingEdgeId": "2dzxChB1qm9WGfzNF91tfg",
"graphCoordinates": { "x": -281, "y": -89 },
"type": "start"
}
],
"groups": [
{
"id": "vLUAPaxKwPF49iZhg4XZYa",
"title": "Menu",
"graphCoordinates": { "x": -268.18, "y": -40.15 },
"blocks": [
{
"id": "spud6U3K1omh2dZG8yN2CW4",
"type": "text",
"content": {
"richText": [
{ "type": "p", "children": [{ "text": "Hey friend 👋" }] },
{ "type": "p", "children": [{ "text": "How can I help you?" }] }
]
}
},
{
"id": "s6kp2Z4igeY3kL7B64qBdUg",
"type": "choice input",
"items": [
{
"id": "fQ8oLDnKmDBuPDK7riJ2kt",
"outgoingEdgeId": "dhniFxrsH5r54aEE5JXwK2",
"content": "I have a feature request ✨"
},
{
"id": "h2rFDX2UnKS4Kdu3Eyuqq3",
"outgoingEdgeId": "2C4mhU5o2Hdm7dztR9xNE9",
"content": "There is a bug 🐛"
},
{
"id": "hcUFBPeQA3gSyXRprRk2v9",
"outgoingEdgeId": "bTo6CZD1YapDDyVdvJgFDV",
"content": "I have a question 💭"
}
]
}
]
},
{
"id": "7MuqF6nen1ZTwGB53Mz8VY",
"title": "Bug",
"graphCoordinates": { "x": 57.55, "y": -57.03 },
"blocks": [
{
"id": "sjsECyfSBMkUnoWaEnBTmJX",
"type": "text",
"content": {
"richText": [{ "type": "p", "children": [{ "text": "Shoot! 🤪" }] }]
}
},
{
"id": "seomQsnPWgiMzQVeZ3us7x2",
"type": "text",
"content": {
"richText": [
{
"type": "p",
"children": [
{
"text": "Can you describe the bug with as many details as possible?"
}
]
}
]
}
},
{
"id": "s3LYyyYtjdQ88jkMMV5DSW7",
"outgoingEdgeId": "s6i6m1vmx9vl0rniev5iymp1",
"type": "text input",
"options": {
"labels": { "placeholder": "Describe the bug..." },
"variableId": "v51BcuecnB6kRU1tsttaGyR",
"isLong": true
}
}
]
},
{
"id": "kyK8JQ77NodUYaz3JLS88A",
"title": "Feature request",
"graphCoordinates": { "x": 364.36, "y": -517.93 },
"blocks": [
{
"id": "s9bgHcWdobb8Z5cTbrnTz6R",
"type": "text",
"content": {
"richText": [{ "type": "p", "children": [{ "text": "Awesome!" }] }]
}
},
{
"id": "s2NbNaBGKhMvdEUdVPXKZjy",
"type": "text",
"content": {
"richText": [
{
"type": "p",
"children": [{ "text": "Head up to the feedback board." }]
},
{ "type": "p", "children": [{ "text": "" }] },
{
"type": "p",
"children": [
{ "text": "👉 " },
{
"url": "https://app.typebot.io/feedback",
"type": "a",
"children": [{ "text": "https://app.typebot.io/feedback" }]
},
{ "text": "" }
]
},
{ "type": "p", "children": [{ "text": "" }] },
{
"type": "p",
"children": [
{
"text": "There, you'll be able to check existing feature requests and submit yours if it's missing 💪"
}
]
}
]
}
},
{
"id": "cl16lb3b300092e6dh4h01vxw",
"type": "choice input",
"items": [
{
"id": "cl16lb3b3000a2e6dy8zdhzpz",
"outgoingEdgeId": "wsbg8ht5das922mkojzjh0yy",
"content": "Restart"
}
]
},
{
"id": "j08qxg0h804rngfroedblt5f",
"type": "Jump",
"options": { "groupId": "vLUAPaxKwPF49iZhg4XZYa" }
}
]
},
{
"id": "puWCBhGWSQRbqTkVH89RCf",
"title": "Question",
"graphCoordinates": { "x": -234.07, "y": 457.59 },
"blocks": [
{
"id": "sm4iHhLQs9yNdRG3b7xqV8Y",
"type": "text",
"content": {
"richText": [
{
"type": "p",
"children": [
{ "text": "First, don't forget to check out the " },
{
"url": "https://docs.typebot.io/",
"type": "a",
"children": [{ "text": "Documentation 🙏" }]
}
]
}
]
}
},
{
"id": "sreX6rwMevEmbTpnkGCtp3k",
"type": "text",
"content": {
"richText": [
{
"type": "p",
"children": [{ "text": "Otherwise, I'm all ears!" }]
}
]
}
},
{
"id": "so4GiKFWWjKCjXgmMJYCGbe",
"type": "image",
"content": {
"url": "https://media0.giphy.com/media/rhgwg4qBu97ISgbfni/giphy-downsized.gif?cid=fe3852a3wimy48e55djt23j44uto7gdlu8ksytylafisvr0q&rid=giphy-downsized.gif&ct=g"
}
},
{
"id": "sjd4qACugMarB7gJC8nMhb3",
"outgoingEdgeId": "vojurfd82lye9yhtag3rie62",
"type": "text input",
"options": { "variableId": "v51BcuecnB6kRU1tsttaGyR", "isLong": true }
}
]
},
{
"id": "1GvxCAAEysxJMxrVngud3X",
"title": "Bye",
"graphCoordinates": { "x": 143.62, "y": 360.18 },
"blocks": [
{
"id": "s4JATFkBxzmcqqEKQB2xFfa",
"type": "choice input",
"items": [
{ "id": "jqm8wZa5yYb73493n5s3Uc", "content": "Restart" },
{
"id": "iszohxs8m1yfe0o1q6skmqo5",
"outgoingEdgeId": "cqcldkfg50a3lxw8kf6bze2e",
"content": "Transcription"
}
]
},
{
"id": "igdnc34rcmiyamazghr8s708",
"type": "Jump",
"options": { "groupId": "vLUAPaxKwPF49iZhg4XZYa" }
}
]
},
{
"id": "lhs4apmv49e4zn4vshbqnk0n",
"title": "Group #6",
"graphCoordinates": { "x": 460.78, "y": 359.03 },
"blocks": [
{
"id": "m1s6w5baydn76trkl145iokz",
"type": "Set variable",
"options": { "variableId": "vpdyhwqidox0fu265z5r1pxr4" }
},
{
"id": "sdv8sulyi6pg2z2qybzjqmbs",
"type": "text",
"content": {
"richText": [
{ "type": "p", "children": [{ "text": "{{Transcription}}" }] }
]
}
}
]
}
],
"edges": [
{
"id": "2dzxChB1qm9WGfzNF91tfg",
"from": { "eventId": "uG1tt8JdDyu2nju3oJ4wc1" },
"to": { "groupId": "vLUAPaxKwPF49iZhg4XZYa" }
},
{
"id": "dhniFxrsH5r54aEE5JXwK2",
"from": {
"blockId": "s6kp2Z4igeY3kL7B64qBdUg",
"itemId": "fQ8oLDnKmDBuPDK7riJ2kt"
},
"to": { "groupId": "kyK8JQ77NodUYaz3JLS88A" }
},
{
"id": "2C4mhU5o2Hdm7dztR9xNE9",
"from": {
"blockId": "s6kp2Z4igeY3kL7B64qBdUg",
"itemId": "h2rFDX2UnKS4Kdu3Eyuqq3"
},
"to": { "groupId": "7MuqF6nen1ZTwGB53Mz8VY" }
},
{
"id": "bTo6CZD1YapDDyVdvJgFDV",
"from": {
"blockId": "s6kp2Z4igeY3kL7B64qBdUg",
"itemId": "hcUFBPeQA3gSyXRprRk2v9"
},
"to": { "groupId": "puWCBhGWSQRbqTkVH89RCf" }
},
{
"id": "cl1571xtc00042e6dcptam5jw",
"from": { "blockId": "s5Fh7zHUw3j4zDM5xjzwsXB" },
"to": { "groupId": "1GvxCAAEysxJMxrVngud3X" }
},
{
"id": "vojurfd82lye9yhtag3rie62",
"from": { "blockId": "sjd4qACugMarB7gJC8nMhb3" },
"to": { "groupId": "1GvxCAAEysxJMxrVngud3X" }
},
{
"id": "s6i6m1vmx9vl0rniev5iymp1",
"from": { "blockId": "s3LYyyYtjdQ88jkMMV5DSW7" },
"to": { "groupId": "1GvxCAAEysxJMxrVngud3X" }
},
{
"id": "wsbg8ht5das922mkojzjh0yy",
"from": {
"blockId": "cl16lb3b300092e6dh4h01vxw",
"itemId": "cl16lb3b3000a2e6dy8zdhzpz"
},
"to": { "groupId": "1GvxCAAEysxJMxrVngud3X" }
},
{
"id": "cqcldkfg50a3lxw8kf6bze2e",
"from": {
"blockId": "s4JATFkBxzmcqqEKQB2xFfa",
"itemId": "iszohxs8m1yfe0o1q6skmqo5"
},
"to": { "groupId": "lhs4apmv49e4zn4vshbqnk0n" }
}
],
"variables": [
{ "id": "t2k6cj3uYfNdJX13APA4b9", "name": "Email" },
{ "id": "v51BcuecnB6kRU1tsttaGyR", "name": "Content" },
{
"id": "vpdyhwqidox0fu265z5r1pxr4",
"name": "Transcription",
"isSessionVariable": true
}
],
"theme": {},
"selectedThemeTemplateId": null,
"settings": { "typingEmulation": { "enabled": false } },
"createdAt": "2024-05-04T09:07:37.028Z",
"updatedAt": "2024-05-04T09:09:56.735Z",
"icon": "😍",
"folderId": null,
"publicId": null,
"customDomain": null,
"workspaceId": "proWorkspace",
"resultsTablePreferences": null,
"isArchived": false,
"isClosed": false,
"whatsAppCredentialsId": null,
"riskLevel": null
}