Skip to content

Commit

Permalink
✨ Add basic ChatGPT template
Browse files Browse the repository at this point in the history
Closes #388
  • Loading branch information
baptisteArno committed Mar 13, 2023
1 parent c4db2f4 commit 86ecd4a
Show file tree
Hide file tree
Showing 2 changed files with 263 additions and 0 deletions.
257 changes: 257 additions & 0 deletions apps/builder/public/templates/basic-chat-gpt.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,257 @@
{
"id": "clf6ov7hg00001ao6q02sb8re",
"version": "3",
"createdAt": "2023-03-13T10:35:44.933Z",
"updatedAt": "2023-03-13T14:53:00.817Z",
"icon": "🤖",
"name": "Basic ChatGPT",
"folderId": null,
"groups": [
{
"id": "ewnfbo0exlu7ihfu2lu2lusm",
"title": "Start",
"blocks": [
{
"id": "igbipfi63m6p9sl2f77uicuv",
"type": "start",
"label": "Start",
"groupId": "ewnfbo0exlu7ihfu2lu2lusm",
"outgoingEdgeId": "sevwpre8fo896btd6xm1e1dv"
}
],
"graphCoordinates": { "x": -20.9296875, "y": -125.6796875 }
},
{
"id": "qfrz5nwm63g12dajsjxothb5",
"title": "User input",
"blocks": [
{
"id": "ovgk70u0kfxrbtz9dy4e040o",
"type": "text input",
"groupId": "qfrz5nwm63g12dajsjxothb5",
"options": {
"isLong": true,
"labels": {
"button": "Send",
"placeholder": "Type your answer..."
},
"variableId": "vevnx5f5bojz0sv648x6ppcmv",
"isPrefillDisabled": true
},
"outgoingEdgeId": "kwm65fnel1gddbwdki9rq76v"
}
],
"graphCoordinates": { "x": 385.59765625, "y": 176 }
},
{
"id": "a6ymhjwtkqwp8t127plz8qmk",
"title": "ChatGPT reply",
"blocks": [
{
"id": "xikptnw1lp1qxdqo10qhmwy1",
"type": "OpenAI",
"groupId": "a6ymhjwtkqwp8t127plz8qmk",
"options": {
"task": "Create chat completion",
"model": "gpt-3.5-turbo",
"messages": [
{
"id": "fxg16pnlnwuhfpz1r51xslbd",
"role": "system",
"content": "You are ChatGPT, a large language model trained by OpenAI."
},
{
"id": "vexqydoltfc5fkdrcednlvjz",
"role": "Messages sequence ✨",
"content": {
"userMessagesVariableId": "vevnx5f5bojz0sv648x6ppcmv",
"assistantMessagesVariableId": "vni6kwbch8zlq92dclgcivzyr"
}
}
],
"responseMapping": [
{
"id": "brb5ccisi1tjiqf3ng0asaiq",
"variableId": "vni6kwbch8zlq92dclgcivzyr",
"valueToExtract": "Message content"
}
]
}
},
{
"id": "myldn1l1nfdwwm8qvza71rwv",
"type": "text",
"content": {
"html": "<div>{{Assistant Messages}}</div>",
"richText": [
{
"type": "p",
"children": [{ "text": "{{Assistant Messages}}" }]
}
],
"plainText": "{{Assistant Messages}}"
},
"groupId": "a6ymhjwtkqwp8t127plz8qmk",
"outgoingEdgeId": "y8ml9ljnsydol9b42fd9zdve"
}
],
"graphCoordinates": { "x": 744.05078125, "y": 178.00390625 }
},
{
"id": "c5f00f3oclwi1srcz10jjt9u",
"title": "Intro",
"blocks": [
{
"id": "vzcrfk4vl9gy8igu0ysja5nc",
"type": "text",
"content": {
"html": "<div>Hi there 👋</div>",
"richText": [
{ "type": "p", "children": [{ "text": "Hi there 👋" }] }
],
"plainText": "Hi there 👋"
},
"groupId": "c5f00f3oclwi1srcz10jjt9u"
},
{
"id": "gphm5wy1md9cunwkdtbzg6nq",
"type": "text",
"content": {
"html": "<div>How can I help?</div>",
"richText": [
{ "type": "p", "children": [{ "text": "How can I help?" }] }
],
"plainText": "How can I help?"
},
"groupId": "c5f00f3oclwi1srcz10jjt9u",
"outgoingEdgeId": "h5sk58j0ryrxmfv4gmw7r4dw"
}
],
"graphCoordinates": { "x": 54.7421875, "y": 172.83203125 }
},
{
"id": "t3tv4dm3khwmiotjle5jb65g",
"title": "",
"blocks": [
{
"id": "s6eky7dd3md9hto9y4wsuj7h",
"type": "text",
"content": {
"html": "<div>You need to add your OpenAI credentials to make this bot work. 🪄</div>",
"richText": [
{
"type": "p",
"children": [
{
"text": "You need to add your OpenAI credentials to make this bot work. 🪄"
}
]
}
],
"plainText": "You need to add your OpenAI credentials to make this bot work. 🪄"
},
"groupId": "t3tv4dm3khwmiotjle5jb65g"
},
{
"id": "nqsu9f13q5j8tt56bcbuto62",
"type": "text",
"content": {
"html": "<div>Once it&apos;s done, delete this group and connect the <span class=\"slate-bold\">Start</span> block with <span class=\"slate-bold\">Intro</span> 🚀</div>",
"richText": [
{
"type": "p",
"children": [
{
"text": "Once it's done, delete this group and connect the "
},
{ "bold": true, "text": "Start" },
{ "text": " block with " },
{ "bold": true, "text": "Intro" },
{ "text": " 🚀" }
]
}
],
"plainText": "Once it's done, delete this group and connect the Start block with Intro 🚀"
},
"groupId": "t3tv4dm3khwmiotjle5jb65g"
}
],
"graphCoordinates": { "x": 321.13671875, "y": -121.90234375 }
}
],
"variables": [
{ "id": "vni6kwbch8zlq92dclgcivzyr", "name": "Assistant Messages" },
{ "id": "vevnx5f5bojz0sv648x6ppcmv", "name": "User Messages" }
],
"edges": [
{
"id": "h5sk58j0ryrxmfv4gmw7r4dw",
"to": { "groupId": "qfrz5nwm63g12dajsjxothb5" },
"from": {
"blockId": "gphm5wy1md9cunwkdtbzg6nq",
"groupId": "c5f00f3oclwi1srcz10jjt9u"
}
},
{
"id": "kwm65fnel1gddbwdki9rq76v",
"to": { "groupId": "a6ymhjwtkqwp8t127plz8qmk" },
"from": {
"blockId": "ovgk70u0kfxrbtz9dy4e040o",
"groupId": "qfrz5nwm63g12dajsjxothb5"
}
},
{
"id": "y8ml9ljnsydol9b42fd9zdve",
"to": { "groupId": "qfrz5nwm63g12dajsjxothb5" },
"from": {
"blockId": "myldn1l1nfdwwm8qvza71rwv",
"groupId": "a6ymhjwtkqwp8t127plz8qmk"
}
},
{
"id": "sevwpre8fo896btd6xm1e1dv",
"to": { "groupId": "t3tv4dm3khwmiotjle5jb65g" },
"from": {
"blockId": "igbipfi63m6p9sl2f77uicuv",
"groupId": "ewnfbo0exlu7ihfu2lu2lusm"
}
}
],
"theme": {
"chat": {
"inputs": {
"color": "#303235",
"backgroundColor": "#FFFFFF",
"placeholderColor": "#9095A0"
},
"buttons": { "color": "#FFFFFF", "backgroundColor": "#0042DA" },
"hostAvatar": {
"isEnabled": true
},
"hostBubbles": { "color": "#303235", "backgroundColor": "#F7F8FF" },
"guestBubbles": { "color": "#FFFFFF", "backgroundColor": "#FF8E21" }
},
"general": {
"font": "Open Sans",
"background": { "type": "Color", "content": "#ffffff" }
}
},
"settings": {
"general": {
"isBrandingEnabled": true,
"isInputPrefillEnabled": true,
"isHideQueryParamsEnabled": true,
"isNewResultOnRefreshEnabled": true
},
"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 }
},
"publicId": null,
"customDomain": null,
"workspaceId": "freeWorkspace",
"resultsTablePreferences": null,
"isArchived": false,
"isClosed": false
}
6 changes: 6 additions & 0 deletions apps/builder/src/features/templates/data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,10 @@ export const templates: TemplateProps[] = [
fileName: 'movie-recommendation.json',
isNew: true,
},
{
name: 'Basic ChatGPT',
emoji: '🤖',
fileName: 'basic-chat-gpt.json',
isNew: true,
},
]

4 comments on commit 86ecd4a

@vercel
Copy link

@vercel vercel bot commented on 86ecd4a Mar 13, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

viewer-v2 – ./apps/viewer

am.nigerias.io
an.nigerias.io
app.yvon.earth
ar.nigerias.io
bot.enreso.org
bot.rslabs.pro
manualhandlingcourse.ie
register.kandabrand.com
signup.hypemarketing.in
subfooter.wpwakanda.com
survey.hypemarketing.in
testbot.afterorigin.com
typebot.influencer.love
www.chatgpt-biliran.com
91181264.your-access.one
abg-assistent.m-vogel.de
ai.chromebookstoreph.com
contextone.wpwakanda.com
form.sergiolimajr.com.br
hunterbot.saleshunter.ai
invite.bridesquadapp.com
link.cascadigital.com.br
onboarding.growthside.io
reward.onlinebotdemo.xyz
stap.venturemarketing.in
type.opaulovieira.com.br
aibot.angrybranding.co.uk
bot.aidigitalmarketing.kr
bot.amicidisanfaustino.it
bot.arraesecenteno.com.br
bot.blackboxsports.com.br
bot.cabinrentalagency.com
bot.fusionstarreviews.com
boyfriend-breakup.riku.ai
brigadeirosemdrama.com.br
chat.ertcrebateportal.com
chat.thehomebuyersusa.com
chat.thisiscrushhouse.com
forms.hiabhaykulkarni.com
healthandsafetycourses.uk
sellmyharleylouisiana.com
testbot.sharemyreview.net
typebot-viewer.vercel.app
verfica.botmachine.com.br
bot.adventureconsulting.hu
bot2.fusionstarreviews.com
casestudyemb.wpwakanda.com
chat.atlasoutfittersk9.com
configurator.bouclidom.com
help.atlasoutfittersk9.com
herbalife.barrettamario.it
homepageonly.wpwakanda.com
liveconvert.kandalearn.com
mainmenu1one.wpwakanda.com
newsletter.itshcormeos.com
tarian.theiofoundation.org
ted.meujalecobrasil.com.br
type.dericsoncalari.com.br
bot.pinpointinteractive.com
bot.polychromes-project.com
bot.seidinembroseanchetu.it
chat.semanalimpanome.com.br
chatbot.berbelanjabiz.trade
designguide.techyscouts.com
liveconvert2.kandalearn.com
presente.empresarias.com.mx
sell.sellthemotorhome.co.uk
anamnese.odontopavani.com.br
austin.channelautomation.com
bot.marketingplusmindset.com
bot.seidibergamoseanchetu.it
desabafe.sergiolimajr.com.br
download.venturemarketing.in
jc-app.virtuesocialmedia.com
piazzatorre.barrettamario.it
type.cookieacademyonline.com
upload.atlasoutfittersk9.com
bot.brigadeirosemdrama.com.br
forms.escoladeautomacao.com.br
onboarding.libertydreamcare.ie
type.talitasouzamarques.com.br
agendamento.sergiolimajr.com.br
anamnese.clinicamegasjdr.com.br
bookings.littlepartymonkeys.com
bot.comercializadoraomicron.com
elevateyourmind.groovepages.com
viewer-v2-typebot-io.vercel.app
yourfeedback.comebackreward.com
gerador.verificadordehospedes.com
personal-trainer.barrettamario.it
preagendamento.sergiolimajr.com.br
studiotecnicoimmobiliaremerelli.it
download.thailandmicespecialist.com
register.thailandmicespecialist.com
bot.studiotecnicoimmobiliaremerelli.it
pesquisa.escolamodacomproposito.com.br
anamnese.clinicaramosodontologia.com.br
chrome-os-inquiry-system.itschromeos.com
viewer-v2-git-main-typebot-io.vercel.app
main-menu-for-itschromeos.itschromeos.com

@vercel
Copy link

@vercel vercel bot commented on 86ecd4a Mar 13, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vercel
Copy link

@vercel vercel bot commented on 86ecd4a Mar 13, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

builder-v2 – ./apps/builder

builder-v2-git-main-typebot-io.vercel.app
app.typebot.io
builder-v2-typebot-io.vercel.app

@vercel
Copy link

@vercel vercel bot commented on 86ecd4a Mar 13, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

docs – ./apps/docs

docs-typebot-io.vercel.app
docs.typebot.io
docs-git-main-typebot-io.vercel.app

Please sign in to comment.