1.1. Integration messenger and DialogFlow

1.Introduction

  • 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

2.DialogFlow

  • DialogFlow is a natural language processor that help developers

  • DialogFlow依據user的input來判斷intent, 該採取甚麼action及response為何

3.Step by step

  1. 建立一個Facebook page

    • 填入名稱

  2. 建立一個新的Facebook App

    • 填入Facebook page名稱

  3. DialogFlow

    • 建立一個帳戶並登入

    • 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

  4. Train DialogFlow agent

Last updated

Was this helpful?