Skip to main content

Bot example:GPT

Example

gptbot

Try the GPT4 bot above at SilenceChat built by our friend Oliver, website:https://ai.silencetime.com/

Prerequisite

  • OpenAI API Key
  • A running VoceChat server
  • Node.js pre-installed

Creat a new VoceChat bot at Bot&Webhook page

Creat-bot

  • Ignore the webhook entry for now (we will get back to this at the end)
  • We will use the Bot ID so mark it down

Take Vercel as an hosting example, you can also host your GPT bot backend somewhere else.

See steps: https://github.com/Privoce/vocechat-chatbot-ui#readme

Set env variables:

envdescription
VOCECHAT_ORIGINVocechat API address, often times the same as your vocechat url, e.g., https://vocechat.example.com
VOCECHAT_BOT_IDVocechat bot ID, see it at your bot page, it's the number after the hashtag #
VOCECHAT_BOT_SECRETVocechat bot API Key, used for Vocechat auth.
OPENAI_API_KEYFor OpenAI API call

Fill out webhook

After hosting your backend successfully, now you have a GPT bot API address, supposedly it is: mygpt.vercel.com, then the webhook should be:https://mygpt.vercel.com/api/bot. Fill this out at your bot&webhook section.

Other examples: Node.js and Python.

See repository: https://github.com/Privoce/vocechat-chatbot-ui#readme Welcome to add your examples in other programming languages!

Ready!

Let's at(@) the bot at a channel or send it a DM! Generating-image