This is a tutorial to create and deploy your SeaTalk bot with one click.
-
create a SeaTalk bot at https://open.seatalk.io
-
update the environment variables where
SEA_APP_ID
is theAPP ID
in Basic Info & Credentials pageSEA_APP_SECRET
is theAPP SECRET
in Basic Info & Credentials pageBOT_SIGNING_SECRET
is theSigning Secret
in Event Callback page
-
go to the vercel domain and paste the vercel domain in SeaTalk bot's Event Callback page e.g.
https://seayou.vercel.app
-
(optional) To recreate SeaTalk i.e. record all messages received, add extra two environment variables from https://www.convex.dev/ and redeploy in vercel
CONVEX_URL
CONVEX_DEPLOY_KEY
- create
.env
file and copy from.env.example
and update the environment variables - install packages with
pip install -r requirements.txt
- start the flask server with
python app.py
- setup ngrok for port 5001 with
ngrok http 5001
- add the ngrok url back to Event Callback page e.g.
https://9fdf-101-127-248-164.ngrok-free.app
- to update the frontend, you need to setup a convex account
cd frontend;
npm install;
npm run dev;