|
| 1 | +{ |
| 2 | + "version": "6", |
| 3 | + "id": "clp6onbn200011ab379x5gnea", |
| 4 | + "name": "Audio ChatGPT", |
| 5 | + "icon": "🔈", |
| 6 | + "events": [ |
| 7 | + { |
| 8 | + "id": "ewnfbo0exlu7ihfu2lu2lusm", |
| 9 | + "outgoingEdgeId": "knz1ln1so0dfyth76qjkjn1p", |
| 10 | + "graphCoordinates": { "x": -228.25, "y": -123.31 }, |
| 11 | + "type": "start" |
| 12 | + } |
| 13 | + ], |
| 14 | + "groups": [ |
| 15 | + { |
| 16 | + "id": "qfrz5nwm63g12dajsjxothb5", |
| 17 | + "title": "User input", |
| 18 | + "graphCoordinates": { "x": 105.17, "y": -56.29 }, |
| 19 | + "blocks": [ |
| 20 | + { |
| 21 | + "id": "ovgk70u0kfxrbtz9dy4e040o", |
| 22 | + "type": "text input", |
| 23 | + "options": { "variableId": "vudksu3zyrat6s1bq6qne0rx3" } |
| 24 | + }, |
| 25 | + { |
| 26 | + "id": "m4jadtknjb3za3gvxj1xdn1k", |
| 27 | + "outgoingEdgeId": "fpj0xacppqd1s5slyljzhzc9", |
| 28 | + "type": "Set variable", |
| 29 | + "options": { |
| 30 | + "variableId": "vabkycu0qqff5d6ar2ama16pf", |
| 31 | + "type": "Append value(s)", |
| 32 | + "item": "{{User Message}}" |
| 33 | + } |
| 34 | + } |
| 35 | + ] |
| 36 | + }, |
| 37 | + { |
| 38 | + "id": "a6ymhjwtkqwp8t127plz8qmk", |
| 39 | + "title": "ChatGPT reply", |
| 40 | + "graphCoordinates": { "x": 445.12, "y": -56.2 }, |
| 41 | + "blocks": [ |
| 42 | + { |
| 43 | + "id": "xikptnw1lp1qxdqo10qhmwy1", |
| 44 | + "type": "OpenAI", |
| 45 | + "options": { |
| 46 | + "task": "Create chat completion", |
| 47 | + "model": "gpt-3.5-turbo", |
| 48 | + "messages": [ |
| 49 | + { |
| 50 | + "id": "wsdxha9db58gk2v9n1j10m7c", |
| 51 | + "role": "Dialogue", |
| 52 | + "dialogueVariableId": "vabkycu0qqff5d6ar2ama16pf", |
| 53 | + "startsBy": "user" |
| 54 | + } |
| 55 | + ], |
| 56 | + "responseMapping": [ |
| 57 | + { |
| 58 | + "id": "p8ksqi2jhyzid2od3dikv299", |
| 59 | + "valueToExtract": "Message content", |
| 60 | + "variableId": "vni6kwbch8zlq92dclgcivzyr" |
| 61 | + } |
| 62 | + ], |
| 63 | + "credentialsId": "clp6ooc3700031ab30yof27jm" |
| 64 | + } |
| 65 | + }, |
| 66 | + { |
| 67 | + "id": "yblc864bzipaqfja7b2o3oo0", |
| 68 | + "type": "Set variable", |
| 69 | + "options": { |
| 70 | + "variableId": "vabkycu0qqff5d6ar2ama16pf", |
| 71 | + "type": "Append value(s)", |
| 72 | + "item": "{{Assistant Message}}" |
| 73 | + } |
| 74 | + }, |
| 75 | + { |
| 76 | + "id": "prsimdxdol42ty2parzgx8am", |
| 77 | + "type": "OpenAI", |
| 78 | + "options": { |
| 79 | + "credentialsId": "clp6ooc3700031ab30yof27jm", |
| 80 | + "task": "Create speech", |
| 81 | + "model": "tts-1", |
| 82 | + "input": "{{Assistant Message}}", |
| 83 | + "voice": "alloy", |
| 84 | + "saveUrlInVariableId": "vgr0iwg95npp7pztkmdyn89m1" |
| 85 | + } |
| 86 | + }, |
| 87 | + { |
| 88 | + "id": "f6onszqys2tx7pw3tshb2vcy", |
| 89 | + "outgoingEdgeId": "dw9jclv60i040saiikj3a386", |
| 90 | + "type": "audio", |
| 91 | + "content": { "url": "{{Assistant audio message}}" } |
| 92 | + } |
| 93 | + ] |
| 94 | + }, |
| 95 | + { |
| 96 | + "id": "c5f00f3oclwi1srcz10jjt9u", |
| 97 | + "title": "Intro", |
| 98 | + "graphCoordinates": { "x": -222.61, "y": -54.39 }, |
| 99 | + "blocks": [ |
| 100 | + { |
| 101 | + "id": "dp5gx25j73fgmcj9582ydik9", |
| 102 | + "type": "OpenAI", |
| 103 | + "options": { |
| 104 | + "credentialsId": "clp6ooc3700031ab30yof27jm", |
| 105 | + "task": "Create speech", |
| 106 | + "model": "tts-1", |
| 107 | + "input": "Hi there! How can I help?", |
| 108 | + "voice": "alloy", |
| 109 | + "saveUrlInVariableId": "vxw4quja426402hvhtm33tsp3" |
| 110 | + } |
| 111 | + }, |
| 112 | + { |
| 113 | + "id": "dmab8kc35uh84vvw1a53xbjn", |
| 114 | + "outgoingEdgeId": "xnao10ucc1hbynv3pmk1t4by", |
| 115 | + "type": "audio", |
| 116 | + "content": { "url": "{{Welcome audio}}" } |
| 117 | + } |
| 118 | + ] |
| 119 | + }, |
| 120 | + { |
| 121 | + "id": "yswu9fml4zflxaqlujb94ir8", |
| 122 | + "title": "", |
| 123 | + "graphCoordinates": { "x": 19.51, "y": -338.93 }, |
| 124 | + "blocks": [ |
| 125 | + { |
| 126 | + "id": "okm2zz32zn8b60u1vkfrv9ca", |
| 127 | + "type": "text", |
| 128 | + "content": { |
| 129 | + "richText": [ |
| 130 | + { |
| 131 | + "type": "p", |
| 132 | + "children": [ |
| 133 | + { |
| 134 | + "text": "You need to add your OpenAI credentials to make this bot work. 🪄" |
| 135 | + } |
| 136 | + ] |
| 137 | + } |
| 138 | + ] |
| 139 | + } |
| 140 | + }, |
| 141 | + { |
| 142 | + "id": "m5a1d0vhsrpyvvvyj89awxzc", |
| 143 | + "type": "text", |
| 144 | + "content": { |
| 145 | + "richText": [ |
| 146 | + { |
| 147 | + "type": "p", |
| 148 | + "children": [ |
| 149 | + { |
| 150 | + "text": "Once it's done, delete this group and connect the " |
| 151 | + }, |
| 152 | + { "text": "Start", "bold": true }, |
| 153 | + { "text": " event with " }, |
| 154 | + { "text": "Intro", "bold": true }, |
| 155 | + { "text": " 🚀\n" } |
| 156 | + ] |
| 157 | + } |
| 158 | + ] |
| 159 | + } |
| 160 | + } |
| 161 | + ] |
| 162 | + } |
| 163 | + ], |
| 164 | + "edges": [ |
| 165 | + { |
| 166 | + "id": "fpj0xacppqd1s5slyljzhzc9", |
| 167 | + "from": { "blockId": "m4jadtknjb3za3gvxj1xdn1k" }, |
| 168 | + "to": { "groupId": "a6ymhjwtkqwp8t127plz8qmk" } |
| 169 | + }, |
| 170 | + { |
| 171 | + "id": "xnao10ucc1hbynv3pmk1t4by", |
| 172 | + "from": { "blockId": "dmab8kc35uh84vvw1a53xbjn" }, |
| 173 | + "to": { "groupId": "qfrz5nwm63g12dajsjxothb5" } |
| 174 | + }, |
| 175 | + { |
| 176 | + "id": "dw9jclv60i040saiikj3a386", |
| 177 | + "from": { "blockId": "f6onszqys2tx7pw3tshb2vcy" }, |
| 178 | + "to": { "groupId": "qfrz5nwm63g12dajsjxothb5" } |
| 179 | + }, |
| 180 | + { |
| 181 | + "from": { "eventId": "ewnfbo0exlu7ihfu2lu2lusm" }, |
| 182 | + "to": { "groupId": "yswu9fml4zflxaqlujb94ir8" }, |
| 183 | + "id": "knz1ln1so0dfyth76qjkjn1p" |
| 184 | + } |
| 185 | + ], |
| 186 | + "variables": [ |
| 187 | + { "id": "vni6kwbch8zlq92dclgcivzyr", "name": "Assistant Message" }, |
| 188 | + { "id": "vudksu3zyrat6s1bq6qne0rx3", "name": "User Message" }, |
| 189 | + { "id": "vabkycu0qqff5d6ar2ama16pf", "name": "Chat history" }, |
| 190 | + { "id": "vxw4quja426402hvhtm33tsp3", "name": "Welcome audio" }, |
| 191 | + { "id": "vgr0iwg95npp7pztkmdyn89m1", "name": "Assistant audio message" } |
| 192 | + ], |
| 193 | + "theme": {}, |
| 194 | + "selectedThemeTemplateId": null, |
| 195 | + "settings": {}, |
| 196 | + "createdAt": "2023-11-20T09:06:40.430Z", |
| 197 | + "updatedAt": "2023-11-20T09:20:01.662Z", |
| 198 | + "folderId": null, |
| 199 | + "publicId": null, |
| 200 | + "customDomain": null, |
| 201 | + "workspaceId": "freeWorkspace", |
| 202 | + "resultsTablePreferences": null, |
| 203 | + "isArchived": false, |
| 204 | + "isClosed": false, |
| 205 | + "whatsAppCredentialsId": null |
| 206 | +} |
0 commit comments