Skip to content

Latest commit

 

History

History
43 lines (29 loc) · 1.6 KB

README.md

File metadata and controls

43 lines (29 loc) · 1.6 KB

💕 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