1.1. Integration messenger and DialogFlow
Last updated
Last updated
Create a chatbot without programming
Features
Intents
Entities
Contexts
Prebuilt agents
People spend 80% of time in just 3 apps.
9 out of the 10 used apps were made by Google and Facebook
Typical chatbot architecture
DialogFlow is a natural language processor that help developers
DialogFlow依據user的input來判斷intent, 該採取甚麼action及response為何
建立一個Facebook page
填入名稱
建立一個新的Facebook App
填入Facebook page名稱
建立一個帳戶並登入
Create a new agent
點選Integration -> 選擇Facebook Messenger
回到developers.facebook
選擇Messenger -> SetUp
從Page的下拉式選單中選擇你的Facebook page, 將會產生一組token拷貝它
回到DialogFlow
將token貼到Page Access Token, 並在verify token中輸入一組字串, 點選Start
回到developers.facebook
點選Setup webhooks
點選messages, message_postbacks
貼上verify token, callback URL (可從DialogFlow取得)
Verify and save
從Webhooks section的下拉式選單中選擇你的Facebook page, 點選Subscribe
Train DialogFlow agent