Slide 1

Slide 1 text

bit.ly/gcp-serverless-workshop

Slide 2

Slide 2 text

I’m Guillaume Laforge Developer Advocate for Google Cloud @glaforge

Slide 3

Slide 3 text

Chatbots Dialogflow — conversational UX Google Assistant Actions on Google

Slide 4

Slide 4 text

Serverless with Cloud Functions

Slide 5

Slide 5 text

No content

Slide 6

Slide 6 text

Chatbots big picture Inception, vocabulary, concepts... Guillaume Laforge @glaforge

Slide 7

Slide 7 text

Chatbots of the past...

Slide 8

Slide 8 text

Bots of today & tomorrow...

Slide 9

Slide 9 text

Game changer: ML-powered voice recognition

Slide 10

Slide 10 text

Game changer: Natural Language Processing

Slide 11

Slide 11 text

No content

Slide 12

Slide 12 text

Confidential & Proprietary Uses Natural Language Understanding to communicate with users. It can be voice or text-based, such as Google Home voice apps or Facebook Messenger chatbots. ⇒ What is a conversational experience? ⇒ What is Dialogflow? Dialogflow is a platform for building conversational experiences that users can communicate with naturally and efficiently.

Slide 13

Slide 13 text

Confidential & Proprietary Life of a conversation “Ok Google, talk to squats master” Invoke “squats master” action “Hi! Let’s do some squats! For how many seconds?” Speech to Text “Tic toc, tic toc… congrats!” “For 10 seconds” Text to Speech “Sure, here’s squats master” Speech to Text, NLP, Knowledge Graph, ML Ranking, User Profile Text to Speech

Slide 14

Slide 14 text

Confidential & Proprietary Chatbot concepts I want to eat some bananas How many of them? INTENT → “eat-something” ENTITY → “banana”

Slide 15

Slide 15 text

Confidential & Proprietary Chatbot concepts How many calories are there? A natural conversation that learns from past exchanges CONTEXT → remember the details of the conversation There are 89 calories in a banana FULFILLMENT → Call some business logic on a remote URL

Slide 16

Slide 16 text

Zoom on Dialogflow Why should you use Dialogflow? Guillaume Laforge @glaforge

Slide 17

Slide 17 text

Confidential & Proprietary 300K+ developers 150+ countries 14+ languages

Slide 18

Slide 18 text

Confidential & Proprietary 40 pre-built agents and small talk features Go-to-market in hours or days Start training with only a few examples Build faster

Slide 19

Slide 19 text

Confidential & Proprietary High accuracy intent recognition, context awareness, slot filling Advanced natural language understanding and machine learning Training and analytics across platforms Engage efficiently

Slide 20

Slide 20 text

Confidential & Proprietary 32 platform integrations and SDKs Build once, deploy everywhere 14+ languages Maximize reach

Slide 21

Slide 21 text

Confidential & Proprietary E󰈲󰈮

Slide 22

Slide 22 text

Zoom on Cloud Functions Functions as a Service on Google Cloud Platform Guillaume Laforge @glaforge

Slide 23

Slide 23 text

Confidential & Proprietary Cloud Functions A “serverless platform for building event-based microservices”. Function-as-a-service approach Great fit for event-oriented architectures, supporting 3 kind of triggers: ● Cloud Storage updates ● Cloud Pub/Sub messages ● Direct HTTP calls

Slide 24

Slide 24 text

Confidential & Proprietary Cloud Functions Completely serverless & fully managed service ⇒ don’t worry about the ops! Automatic scaling and super-fast ⇒ grows with the success of your project ⇒ cost-effective (pay as you go) Open and familiar ⇒ JavaScript / Node.js

Slide 25

Slide 25 text

Confidential & Proprietary Possible use cases API endpoints Cloud Events Lightweight ETL Webhooks IoT e e e e

Slide 26

Slide 26 text

Confidential & Proprietary Function types HTTP functions Synchronous invocation over HTTPS. We give you a URL and a TLS certificate Background functions Asynchronously invoked by cloud events

Slide 27

Slide 27 text

hello_http.js // Function triggered via HTTPS exports.helloHttp = function(req, res) { res.send(`Hello World!`); }

Slide 28

Slide 28 text

hello_bg.js // Function triggered via event with a callback exports.helloBg = function(event, callback) { // Do something callback(); } // Or using Promises exports.helloBg = function(event) { // returns a promise return true; }

Slide 29

Slide 29 text

Confidential & Proprietary E󰈲󰈮

Slide 30

Slide 30 text

Confidential & Proprietary Fast feedback loop: emulator + ngrok Google Cloud Functions emulator Ngrok secure internet tunnels to localhost LIVE RELOADING DEBUG IN CHROME

Slide 31

Slide 31 text

Cloud Functions for Firebase

Slide 32

Slide 32 text

Confidential & Proprietary Functions better with Firebase! Cloud Storage (incl. Firebase) Cloud Pub/Sub HTTPS Firebase Realtime Database & the new Firestore database Firebase Authentication Firebase Analytics Firebase Hosting NEW

Slide 33

Slide 33 text

Putting it all together! Guillaume Laforge @glaforge

Slide 34

Slide 34 text

Summary References — Conclusion — Q&A Guillaume Laforge @glaforge

Slide 35

Slide 35 text

Confidential & Proprietary cloud.google.com/functions firebase.google.com cloud.google.com/serverless To learn more...

Slide 36

Slide 36 text

Confidential & Proprietary g.co/dev/ActionsDesign To learn more...

Slide 37

Slide 37 text

Conclusion Guillaume Laforge @glaforge

Slide 38

Slide 38 text

Confidential & Proprietary

Slide 39

Slide 39 text

Confidential & Proprietary Thank you Guillaume Laforge @glaforge

Slide 40

Slide 40 text

Confidential & Proprietary Let’s get our hands dirty! bit.ly/gcp-serverless-workshop