Skip to content

thepnatee/line-chatbot-webhook-for-beginner-master

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Step 1

Config Project Setting

  • *** Change Location -> Default GCP resource location Not yet selected ==> asia-east2
  • ** Change Supoort Email : [email protected]
  • **** Upgrad Plan Project Spark to Blaze (ใช้ Cloud Function ต้องผูกบัตร. *** หรือ หนีไป Emulator ได้เลย)
  • Create Database -> Cloud Firestore
  • Create Realtime Database (ต้องเอา Database URL)

Step 2

Firebase Setting

  • ต้องมั่นใจว่า Firebase Login แล้วนะ
  • firebase init functions (Enter อย่างเดียวนะไม่ต้องแก้)
  • เลือกภาษา : TypeScript

Firebase Setting

  • เมนู Service Accounts -> Firebase Admin SDK -> Choice Node JS. -> Copy text แก้ไขที่ file นี้ ../function/src/store.ts
  • Generate new private key -> copy text to ../function/config.json
  • Edit Project ID From Firebase -> .firebaserc (แก้ project id จาก project setting)
  • firebase deploy --only functions

Go to file Webhook.ts

  • แก้ token = xxxxxxxxxx. ที่ได้จาก Messaging API IN LINE Developer Console

Option

  • เชื่อมต่อ Dialogflow แก้ dialogflowid = yyyyyyyyyyyy
  • เชื่อมต่อ LINE Notify แก้ lineNotify = zzzzzzzzzz

@thepnatee phojan @[email protected]

About

line-chatbot-webhook-for-beginner-master

Topics

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published