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.
- Bot token from @BotFather
- API key from OpenAI platform
- Google account
- Program environment
- 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
-
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
I will not show how to deploy the bot. Instead, you can view the following documentation: Lumpia documentations
- 💜 Simple tutorial: telegra.ph
- 📚 Full documentation: lumpia.js.org