From 218f6892690da5c2cb58c4c470b3b8009e6a24f5 Mon Sep 17 00:00:00 2001 From: Baptiste Arnaud Date: Mon, 13 May 2024 09:30:51 +0200 Subject: [PATCH] :recycle: (templates) Update variables isSession props --- .../public/templates/audio-chat-gpt.json | 30 +++++- .../public/templates/basic-chat-gpt.json | 18 +++- .../public/templates/chat-gpt-personas.json | 18 +++- .../public/templates/customer-support.json | 12 ++- .../templates/digital-product-payment.json | 12 ++- .../public/templates/dog-insurance-offer.json | 24 ++++- .../templates/high-ticket-lead-follow-up.json | 42 ++++++-- .../builder/public/templates/lead-gen-ai.json | 36 +++++-- apps/builder/public/templates/lead-gen.json | 12 ++- .../builder/public/templates/lead-magnet.json | 18 +++- .../public/templates/lead-scoring.json | 24 ++++- .../templates/movie-recommendation.json | 96 +++++++++++++++---- apps/builder/public/templates/nps.json | 12 ++- apps/builder/public/templates/onboarding.json | 24 ++++- .../public/templates/openai-conditions.json | 12 ++- .../templates/product-recommendation.json | 36 +++++-- apps/builder/public/templates/quiz.json | 8 +- 17 files changed, 362 insertions(+), 72 deletions(-) diff --git a/apps/builder/public/templates/audio-chat-gpt.json b/apps/builder/public/templates/audio-chat-gpt.json index 3cf83c6875..b781d3fc20 100644 --- a/apps/builder/public/templates/audio-chat-gpt.json +++ b/apps/builder/public/templates/audio-chat-gpt.json @@ -177,11 +177,31 @@ } ], "variables": [ - { "id": "vni6kwbch8zlq92dclgcivzyr", "name": "Assistant Message" }, - { "id": "vudksu3zyrat6s1bq6qne0rx3", "name": "User Message" }, - { "id": "vabkycu0qqff5d6ar2ama16pf", "name": "Chat history" }, - { "id": "vxw4quja426402hvhtm33tsp3", "name": "Welcome audio" }, - { "id": "vgr0iwg95npp7pztkmdyn89m1", "name": "Assistant audio message" } + { + "id": "vni6kwbch8zlq92dclgcivzyr", + "name": "Assistant Message", + "isSessionVariable": true + }, + { + "id": "vudksu3zyrat6s1bq6qne0rx3", + "name": "User Message", + "isSessionVariable": true + }, + { + "id": "vabkycu0qqff5d6ar2ama16pf", + "name": "Chat history", + "isSessionVariable": true + }, + { + "id": "vxw4quja426402hvhtm33tsp3", + "name": "Welcome audio", + "isSessionVariable": true + }, + { + "id": "vgr0iwg95npp7pztkmdyn89m1", + "name": "Assistant audio message", + "isSessionVariable": true + } ], "theme": {}, "selectedThemeTemplateId": null, diff --git a/apps/builder/public/templates/basic-chat-gpt.json b/apps/builder/public/templates/basic-chat-gpt.json index a6dc537ace..62404650fd 100644 --- a/apps/builder/public/templates/basic-chat-gpt.json +++ b/apps/builder/public/templates/basic-chat-gpt.json @@ -175,9 +175,21 @@ } ], "variables": [ - { "id": "vni6kwbch8zlq92dclgcivzyr", "name": "Assistant Message" }, - { "id": "vudksu3zyrat6s1bq6qne0rx3", "name": "User Message" }, - { "id": "vabkycu0qqff5d6ar2ama16pf", "name": "Chat history" } + { + "id": "vni6kwbch8zlq92dclgcivzyr", + "name": "Assistant Message", + "isSessionVariable": true + }, + { + "id": "vudksu3zyrat6s1bq6qne0rx3", + "name": "User Message", + "isSessionVariable": true + }, + { + "id": "vabkycu0qqff5d6ar2ama16pf", + "name": "Chat history", + "isSessionVariable": true + } ], "theme": {}, "selectedThemeTemplateId": null, diff --git a/apps/builder/public/templates/chat-gpt-personas.json b/apps/builder/public/templates/chat-gpt-personas.json index 6431b2efae..f8e929570d 100644 --- a/apps/builder/public/templates/chat-gpt-personas.json +++ b/apps/builder/public/templates/chat-gpt-personas.json @@ -684,9 +684,21 @@ } ], "variables": [ - { "id": "vni6kwbch8zlq92dclgcivzyr", "name": "Assistant Message" }, - { "id": "vevnx5f5bojz0sv648x6ppcmv", "name": "User Message" }, - { "id": "vu9adij5penetej2xz89htfe6", "name": "Chat history" } + { + "id": "vni6kwbch8zlq92dclgcivzyr", + "name": "Assistant Message", + "isSessionVariable": true + }, + { + "id": "vevnx5f5bojz0sv648x6ppcmv", + "name": "User Message", + "isSessionVariable": true + }, + { + "id": "vu9adij5penetej2xz89htfe6", + "name": "Chat history", + "isSessionVariable": true + } ], "theme": {}, "selectedThemeTemplateId": null, diff --git a/apps/builder/public/templates/customer-support.json b/apps/builder/public/templates/customer-support.json index e4190ec6c5..6d8c391f33 100644 --- a/apps/builder/public/templates/customer-support.json +++ b/apps/builder/public/templates/customer-support.json @@ -325,8 +325,16 @@ } ], "variables": [ - { "id": "t2k6cj3uYfNdJX13APA4b9", "name": "Email" }, - { "id": "v51BcuecnB6kRU1tsttaGyR", "name": "Content" } + { + "id": "t2k6cj3uYfNdJX13APA4b9", + "name": "Email", + "isSessionVariable": true + }, + { + "id": "v51BcuecnB6kRU1tsttaGyR", + "name": "Content", + "isSessionVariable": true + } ], "theme": {}, "selectedThemeTemplateId": null, diff --git a/apps/builder/public/templates/digital-product-payment.json b/apps/builder/public/templates/digital-product-payment.json index 340dbcd51c..e909e9e89f 100644 --- a/apps/builder/public/templates/digital-product-payment.json +++ b/apps/builder/public/templates/digital-product-payment.json @@ -398,8 +398,16 @@ } ], "variables": [ - { "id": "vcl3u45hek000b2e6gkl05z1da", "name": "Name" }, - { "id": "vcl3u4n1vk00162e6gs6x59o2k", "name": "Email" } + { + "id": "vcl3u45hek000b2e6gkl05z1da", + "name": "Name", + "isSessionVariable": true + }, + { + "id": "vcl3u4n1vk00162e6gs6x59o2k", + "name": "Email", + "isSessionVariable": true + } ], "theme": {}, "selectedThemeTemplateId": null, diff --git a/apps/builder/public/templates/dog-insurance-offer.json b/apps/builder/public/templates/dog-insurance-offer.json index f9402bad1e..150079b304 100644 --- a/apps/builder/public/templates/dog-insurance-offer.json +++ b/apps/builder/public/templates/dog-insurance-offer.json @@ -591,10 +591,26 @@ } ], "variables": [ - { "id": "vgl2m65vej3cjwqvkawnpih2l", "name": "Name" }, - { "id": "vhl1s7qoksnw7r8b1soocxwsd", "name": "Pronoun" }, - { "id": "vq61f8ykwadq1pj8389qf9h91", "name": "Estimated price" }, - { "id": "vzhkagzjqqa0amfc78jekl2gz", "name": "Email" } + { + "id": "vgl2m65vej3cjwqvkawnpih2l", + "name": "Name", + "isSessionVariable": true + }, + { + "id": "vhl1s7qoksnw7r8b1soocxwsd", + "name": "Pronoun", + "isSessionVariable": true + }, + { + "id": "vq61f8ykwadq1pj8389qf9h91", + "name": "Estimated price", + "isSessionVariable": true + }, + { + "id": "vzhkagzjqqa0amfc78jekl2gz", + "name": "Email", + "isSessionVariable": true + } ], "theme": {}, "selectedThemeTemplateId": null, diff --git a/apps/builder/public/templates/high-ticket-lead-follow-up.json b/apps/builder/public/templates/high-ticket-lead-follow-up.json index 0a789a3e86..df6f92aaed 100644 --- a/apps/builder/public/templates/high-ticket-lead-follow-up.json +++ b/apps/builder/public/templates/high-ticket-lead-follow-up.json @@ -605,13 +605,41 @@ } ], "variables": [ - { "id": "vct90f8lq4uuyqupv6qco5jfq", "name": "last utterance" }, - { "id": "vaut2rkwqv5gwwihthbk7uhqd", "name": "Assistant message" }, - { "id": "voleiyma8rwvqi3hcn3axrij5", "name": "Global system prompt" }, - { "id": "vm8s6oxkp7k3ikf9cmq80688u", "name": "JSON" }, - { "id": "vabp22hjq8st3roj9qo8lbub3", "name": "Business" }, - { "id": "vuffpsxxfqujokeyh10hfm65p", "name": "Average revenue" }, - { "id": "vvmh29a0tgn5ugzhnxzqth546", "name": "SEO interest" } + { + "id": "vct90f8lq4uuyqupv6qco5jfq", + "name": "last utterance", + "isSessionVariable": true + }, + { + "id": "vaut2rkwqv5gwwihthbk7uhqd", + "name": "Assistant message", + "isSessionVariable": true + }, + { + "id": "voleiyma8rwvqi3hcn3axrij5", + "name": "Global system prompt", + "isSessionVariable": true + }, + { + "id": "vm8s6oxkp7k3ikf9cmq80688u", + "name": "JSON", + "isSessionVariable": true + }, + { + "id": "vabp22hjq8st3roj9qo8lbub3", + "name": "Business", + "isSessionVariable": true + }, + { + "id": "vuffpsxxfqujokeyh10hfm65p", + "name": "Average revenue", + "isSessionVariable": true + }, + { + "id": "vvmh29a0tgn5ugzhnxzqth546", + "name": "SEO interest", + "isSessionVariable": true + } ], "theme": {}, "selectedThemeTemplateId": null, diff --git a/apps/builder/public/templates/lead-gen-ai.json b/apps/builder/public/templates/lead-gen-ai.json index e89480c3ed..5e8753b439 100644 --- a/apps/builder/public/templates/lead-gen-ai.json +++ b/apps/builder/public/templates/lead-gen-ai.json @@ -400,12 +400,36 @@ } ], "variables": [ - { "id": "giiLFGw5xXBCHzvp1qAbdX", "name": "Company" }, - { "id": "v3VFChNVSCXQ2rXv4DrJ8Ah", "name": "Email" }, - { "id": "vi0mmx9o2m4s8z9cccsjcvpj5", "name": "Services" }, - { "id": "vpvkbogoj3rmogz0ssh5odmnn", "name": "AI reply" }, - { "id": "vhp0ymgwq4id82l97g0kliglf", "name": "Additional information" }, - { "id": "vi5ta5lktses2h6skf5ky2zs0", "name": "AI Dialogue" } + { + "id": "giiLFGw5xXBCHzvp1qAbdX", + "name": "Company", + "isSessionVariable": true + }, + { + "id": "v3VFChNVSCXQ2rXv4DrJ8Ah", + "name": "Email", + "isSessionVariable": true + }, + { + "id": "vi0mmx9o2m4s8z9cccsjcvpj5", + "name": "Services", + "isSessionVariable": true + }, + { + "id": "vpvkbogoj3rmogz0ssh5odmnn", + "name": "AI reply", + "isSessionVariable": true + }, + { + "id": "vhp0ymgwq4id82l97g0kliglf", + "name": "Additional information", + "isSessionVariable": true + }, + { + "id": "vi5ta5lktses2h6skf5ky2zs0", + "name": "AI Dialogue", + "isSessionVariable": true + } ], "theme": {}, "selectedThemeTemplateId": null, diff --git a/apps/builder/public/templates/lead-gen.json b/apps/builder/public/templates/lead-gen.json index 5d7187aa0b..c05072b413 100644 --- a/apps/builder/public/templates/lead-gen.json +++ b/apps/builder/public/templates/lead-gen.json @@ -248,8 +248,16 @@ } ], "variables": [ - { "id": "giiLFGw5xXBCHzvp1qAbdX", "name": "Name" }, - { "id": "v3VFChNVSCXQ2rXv4DrJ8Ah", "name": "Email" } + { + "id": "giiLFGw5xXBCHzvp1qAbdX", + "name": "Name", + "isSessionVariable": true + }, + { + "id": "v3VFChNVSCXQ2rXv4DrJ8Ah", + "name": "Email", + "isSessionVariable": true + } ], "theme": {}, "selectedThemeTemplateId": null, diff --git a/apps/builder/public/templates/lead-magnet.json b/apps/builder/public/templates/lead-magnet.json index 9fca15b92e..b8665216de 100644 --- a/apps/builder/public/templates/lead-magnet.json +++ b/apps/builder/public/templates/lead-magnet.json @@ -470,9 +470,21 @@ } ], "variables": [ - { "id": "vyu4paeim4jcjgmxr26bdk286", "name": "Name" }, - { "id": "vf49immob0ih3kxn5b0nraqkq", "name": "Goal" }, - { "id": "vrhd0bug6b6dzgijevfoonvo2", "name": "Email" } + { + "id": "vyu4paeim4jcjgmxr26bdk286", + "name": "Name", + "isSessionVariable": true + }, + { + "id": "vf49immob0ih3kxn5b0nraqkq", + "name": "Goal", + "isSessionVariable": true + }, + { + "id": "vrhd0bug6b6dzgijevfoonvo2", + "name": "Email", + "isSessionVariable": true + } ], "theme": {}, "selectedThemeTemplateId": null, diff --git a/apps/builder/public/templates/lead-scoring.json b/apps/builder/public/templates/lead-scoring.json index 89ae24a8b8..1bd1e9aace 100644 --- a/apps/builder/public/templates/lead-scoring.json +++ b/apps/builder/public/templates/lead-scoring.json @@ -608,10 +608,26 @@ } ], "variables": [ - { "id": "vcl1sezzln002b2e6e6ssxh9bf", "name": "Lead Score" }, - { "id": "vcl1sf1ko5002g2e6egjmyb16v", "name": "Team size" }, - { "id": "vcl1sf525q00362e6eoyosycte", "name": "Country" }, - { "id": "vcl1sf93s2003l2e6eojomb66g", "name": "Company" } + { + "id": "vcl1sezzln002b2e6e6ssxh9bf", + "name": "Lead Score", + "isSessionVariable": true + }, + { + "id": "vcl1sf1ko5002g2e6egjmyb16v", + "name": "Team size", + "isSessionVariable": true + }, + { + "id": "vcl1sf525q00362e6eoyosycte", + "name": "Country", + "isSessionVariable": true + }, + { + "id": "vcl1sf93s2003l2e6eojomb66g", + "name": "Company", + "isSessionVariable": true + } ], "theme": {}, "selectedThemeTemplateId": null, diff --git a/apps/builder/public/templates/movie-recommendation.json b/apps/builder/public/templates/movie-recommendation.json index 369b6f0b10..aeb8f62712 100644 --- a/apps/builder/public/templates/movie-recommendation.json +++ b/apps/builder/public/templates/movie-recommendation.json @@ -548,22 +548,86 @@ } ], "variables": [ - { "id": "vh5bxx07kl3016wr1undh2yb3", "name": "API Key" }, - { "id": "vx0bbqzug4vk3zpc31ly8k7al", "name": "Genres" }, - { "id": "vkmbb3rb2hcfd2io1fhf7rz5x", "name": "Selected genre" }, - { "id": "vwc00rydyp035vtb0nlaqyzwr", "name": "Genre IDs" }, - { "id": "vwewa4yugqch2sswdpneszk3i", "name": "Selected genre ID" }, - { "id": "vad8vq3jfyybxo4la57hfd529", "name": "Movies" }, - { "id": "vhc2pc1sv4xc778r9od2ctooz", "name": "Movie IDs" }, - { "id": "vyyr3j2pu76uzvf88laai8snl", "name": "Selected Movie" }, - { "id": "vzslfw8oyo1f08uo5rpkegn0x", "name": "Selected Movie ID" }, - { "id": "vdvjx1w1sorma4zq0qtsdqrdi", "name": "IMDB ID" }, - { "id": "vzns0wpumgo8vxjdty2w5t54a", "name": "Movie Overview" }, - { "id": "vzf5ryexokpr4dihiur2spm8z", "name": "Poster path" }, - { "id": "vwitf3um5uweynypc0hxxwm14", "name": "Poster URL" }, - { "id": "vkzk96oh1pmdjv2bt5ps60qc0", "name": "Trending Movies" }, - { "id": "vcmybxcoaytd2geo5sqx7v8hw", "name": "Trending IDs" }, - { "id": "vulnb1om2fk8mvkcesl8s15cr", "name": "Selected Trending Movie" } + { + "id": "vh5bxx07kl3016wr1undh2yb3", + "name": "API Key", + "isSessionVariable": true + }, + { + "id": "vx0bbqzug4vk3zpc31ly8k7al", + "name": "Genres", + "isSessionVariable": true + }, + { + "id": "vkmbb3rb2hcfd2io1fhf7rz5x", + "name": "Selected genre", + "isSessionVariable": true + }, + { + "id": "vwc00rydyp035vtb0nlaqyzwr", + "name": "Genre IDs", + "isSessionVariable": true + }, + { + "id": "vwewa4yugqch2sswdpneszk3i", + "name": "Selected genre ID", + "isSessionVariable": true + }, + { + "id": "vad8vq3jfyybxo4la57hfd529", + "name": "Movies", + "isSessionVariable": true + }, + { + "id": "vhc2pc1sv4xc778r9od2ctooz", + "name": "Movie IDs", + "isSessionVariable": true + }, + { + "id": "vyyr3j2pu76uzvf88laai8snl", + "name": "Selected Movie", + "isSessionVariable": true + }, + { + "id": "vzslfw8oyo1f08uo5rpkegn0x", + "name": "Selected Movie ID", + "isSessionVariable": true + }, + { + "id": "vdvjx1w1sorma4zq0qtsdqrdi", + "name": "IMDB ID", + "isSessionVariable": true + }, + { + "id": "vzns0wpumgo8vxjdty2w5t54a", + "name": "Movie Overview", + "isSessionVariable": true + }, + { + "id": "vzf5ryexokpr4dihiur2spm8z", + "name": "Poster path", + "isSessionVariable": true + }, + { + "id": "vwitf3um5uweynypc0hxxwm14", + "name": "Poster URL", + "isSessionVariable": true + }, + { + "id": "vkzk96oh1pmdjv2bt5ps60qc0", + "name": "Trending Movies", + "isSessionVariable": true + }, + { + "id": "vcmybxcoaytd2geo5sqx7v8hw", + "name": "Trending IDs", + "isSessionVariable": true + }, + { + "id": "vulnb1om2fk8mvkcesl8s15cr", + "name": "Selected Trending Movie", + "isSessionVariable": true + } ], "theme": {}, "selectedThemeTemplateId": null, diff --git a/apps/builder/public/templates/nps.json b/apps/builder/public/templates/nps.json index 0525722872..b940157771 100644 --- a/apps/builder/public/templates/nps.json +++ b/apps/builder/public/templates/nps.json @@ -575,8 +575,16 @@ } ], "variables": [ - { "id": "vwqc8tzl0380h30vxh07fekmm", "name": "Recommend rate" }, - { "id": "vcgkjbh8intf2cql1oteyj4mu", "name": "Type" } + { + "id": "vwqc8tzl0380h30vxh07fekmm", + "name": "Recommend rate", + "isSessionVariable": true + }, + { + "id": "vcgkjbh8intf2cql1oteyj4mu", + "name": "Type", + "isSessionVariable": true + } ], "theme": {}, "selectedThemeTemplateId": null, diff --git a/apps/builder/public/templates/onboarding.json b/apps/builder/public/templates/onboarding.json index ff0d42556b..08d103010f 100644 --- a/apps/builder/public/templates/onboarding.json +++ b/apps/builder/public/templates/onboarding.json @@ -321,10 +321,26 @@ } ], "variables": [ - { "id": "cl126f4hf000i2e6d8zvzc3t1", "name": "Name" }, - { "id": "cl126jqww000w2e6dq9yv4ifq", "name": "Company" }, - { "id": "cl126mo3t001b2e6dvyi16bkd", "name": "Categories" }, - { "id": "cl126q38p001q2e6d0hj23f6b", "name": "Other categories" } + { + "id": "cl126f4hf000i2e6d8zvzc3t1", + "name": "Name", + "isSessionVariable": true + }, + { + "id": "cl126jqww000w2e6dq9yv4ifq", + "name": "Company", + "isSessionVariable": true + }, + { + "id": "cl126mo3t001b2e6dvyi16bkd", + "name": "Categories", + "isSessionVariable": true + }, + { + "id": "cl126q38p001q2e6d0hj23f6b", + "name": "Other categories", + "isSessionVariable": true + } ], "theme": {}, "selectedThemeTemplateId": null, diff --git a/apps/builder/public/templates/openai-conditions.json b/apps/builder/public/templates/openai-conditions.json index 283516f5f6..6b3b650383 100644 --- a/apps/builder/public/templates/openai-conditions.json +++ b/apps/builder/public/templates/openai-conditions.json @@ -249,8 +249,16 @@ } ], "variables": [ - { "id": "vni6kwbch8zlq92dclgcivzyr", "name": "Assistant Message" }, - { "id": "vudksu3zyrat6s1bq6qne0rx3", "name": "User Message" } + { + "id": "vni6kwbch8zlq92dclgcivzyr", + "name": "Assistant Message", + "isSessionVariable": true + }, + { + "id": "vudksu3zyrat6s1bq6qne0rx3", + "name": "User Message", + "isSessionVariable": true + } ], "theme": {}, "selectedThemeTemplateId": null, diff --git a/apps/builder/public/templates/product-recommendation.json b/apps/builder/public/templates/product-recommendation.json index 5a18fd7d28..c2af52d6a0 100644 --- a/apps/builder/public/templates/product-recommendation.json +++ b/apps/builder/public/templates/product-recommendation.json @@ -1148,12 +1148,36 @@ } ], "variables": [ - { "id": "vp1r2yrb6xgmi2aq3x6x73vaz", "name": "Name" }, - { "id": "vhbd5800sc98l1lk8wf7fe742", "name": "Flavour" }, - { "id": "vma96g9rw8oaosc0ei2iacqig", "name": "Continent" }, - { "id": "vlgo7i0r514jkd9a9f24otm4m", "name": "Protein source" }, - { "id": "vgz8fr5u7q0p4jdef1krz2vm3", "name": "Goals" }, - { "id": "vz4fqc40gkk99h0qeus2tjwhx", "name": "Diet restrictions" } + { + "id": "vp1r2yrb6xgmi2aq3x6x73vaz", + "name": "Name", + "isSessionVariable": true + }, + { + "id": "vhbd5800sc98l1lk8wf7fe742", + "name": "Flavour", + "isSessionVariable": true + }, + { + "id": "vma96g9rw8oaosc0ei2iacqig", + "name": "Continent", + "isSessionVariable": true + }, + { + "id": "vlgo7i0r514jkd9a9f24otm4m", + "name": "Protein source", + "isSessionVariable": true + }, + { + "id": "vgz8fr5u7q0p4jdef1krz2vm3", + "name": "Goals", + "isSessionVariable": true + }, + { + "id": "vz4fqc40gkk99h0qeus2tjwhx", + "name": "Diet restrictions", + "isSessionVariable": true + } ], "theme": { "general": { diff --git a/apps/builder/public/templates/quiz.json b/apps/builder/public/templates/quiz.json index 4e1a6c1e26..f060d42c64 100644 --- a/apps/builder/public/templates/quiz.json +++ b/apps/builder/public/templates/quiz.json @@ -738,7 +738,13 @@ "to": { "groupId": "cl1r09bc6000h2e6dqml18p4p" } } ], - "variables": [{ "id": "vcl1r0bxdj000z2e6d65u7n41b", "name": "Score" }], + "variables": [ + { + "id": "vcl1r0bxdj000z2e6d65u7n41b", + "name": "Score", + "isSessionVariable": true + } + ], "theme": {}, "selectedThemeTemplateId": null, "settings": { "general": {} },