Skip to content

A simple chat bots integrated with OpenAI API deployed in Google App Script.

License

Notifications You must be signed in to change notification settings

Noneoftheses/Zhenni-OpenAI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

💕 Zhenni-OpenAI

A simple chat bots integrated with OpenAI API deployed in Google App Script.

You can see the original bot on the following link: @ZhenniOpenAI_Bot.

📌 Requirements

❓ Steps

  • Register for OpenAI API Key
  • Go to Apps Script
  • Create new project by clicking "+ New project"
  • Go to libraries > +
  • Enter the lumpia library ID: 1Yo6vQRwjG5Gl9jeEF0g2tBTUa0XN5MyT4G_HeDpRr9DvabxhRcSdhPNj
  • Version: Now the version is 10. Always choose the largest version number!
  • ID: Keep the ID/name of the library is lumpia

📑 Define properties

  • Go to code.gs

  • Copy the code and paste on the app script editor

  • On your app script editor, go to settings by clicking "⚙️"

  • Scroll down and search for Script Properties

  • Click Add script properties

  • Enter name with api_key_openai & value with your OpenAI API key

  • Add new property, Enter name again with bot_token& value with your bot token from @BotFather

  • Click Save script properties

⚡ Deploying

I will not show how to deploy the bot. Instead, you can view the following documentation: Lumpia documentations

About

A simple chat bots integrated with OpenAI API deployed in Google App Script.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published