Upgrade to Pro — share decks privately, control downloads, hide ads and more …

A Chatbot experience - WeAreDevelopers 2018

Sponsored · SiteGround - Reliable hosting with speed, security, and support you can count on. →

A Chatbot experience - WeAreDevelopers 2018

Let's have some fun an build a chatbot for Google Kubernetes Engine. GitHub Repo: https://github.com/JBClion/kubot/

JBClion

May 17, 2018

Transcript

40 slides
  1. AGENTS Agents ARE designed to manage a conversation flow. They

    can be used by your app to transform natural user requests into actionable data.
  2. INTENTS An intent represents a mapping between what a user

    says and what action should be taken by your software. I want a coffee, I would like to drink a coffee, any coffee left? All these users inputs maps to the action -> the user wants some coffee.
  3. ENTITIES Entities are powerful tools used for extracting parameter values

    from natural language inputs. I want a coffee, I would like to drink a tea, any milk left? Coffee, TEA & Milk belong to the DRINKS entity -> IT WILL BE USED BY THE SYSTEM TO DETECT PARAMETERS
  4. CONTEXT CONTEXT ARE CONNECTING INTENTS BY REMEMBERING DISCUSSIONS I/O AND

    ADDING MORE NATURAL FEELING. USER: I want a coffee? Bot: SURe! USER: What is the price? BOT: 5$ for a coffee! STICK TO THE CONTEXT!
  5. FULFILLMENT Execution or accomplishment of an intent via a third

    party solutions (API CALL, MESSAGE, ….) INTENT: WHICH COFFEES DO YOU HAVE? A fulfillment would then call an API retrieve coffees -> INTENT FULFILLED BY RETURNING COFFEE’S LIST
  6. CREATE INTENTS 1. List available drinks? 2. How much for

    a Drink? 3. Can I add Topping on my Drink?
  7. 1. List available drinks? // Return dynamic drinks list 2.

    How much for a Drink? // Return dynamic drink price 3. Can I add Topping on my Drink? // REturn dynamic Toppings for a Drink SETUP FULFILLMENT
  8. LET’s USE WHAT WE HAVE LEARNED WITH DIALOGFLOW TO BUILD

    A KUBERNETES ENGINE CHATBOT! LET’S JUST CALL IT KUBOT
  9. LIST CLUSTERS SELECT CLUSTER DESCRIBE CLUSTER LIST OPERATIONS START LOGGING

    STOP LOGGING Context ENTITY? CLUSTER ID SYSTEM ENTITY

More Decks by JBClion

Other Decks in Programming