Duration 40:16
16+
Play
Video

Transform the way you work with Hangouts Chat bots

Wesley Chun
Software Engineer at Google
+ 2 speakers
  • Video
  • Table of contents
  • Video
2018 Google I/O
May 8, 2018, Mountain View, USA
2018 Google I/O
Video
Transform the way you work with Hangouts Chat bots
Available
In cart
Free
Free
Free
Free
Free
Free
Add to favorites
28.5 K
I like 0
I dislike 0
Available
In cart
Free
Free
Free
Free
Free
Free
  • Description
  • Transcript
  • Discussion

About speakers

Wesley Chun
Software Engineer at Google
Chuan Ji
Software Engineer at Google
Mike Sorvillo
Product Manager at Google

Wesley Chun is author of the bestselling "Core Python" (corepython.com) books, co-author of "Python Web Development with Django" (withdjango.com), and has written for Linux Journal and CNET. In addition to being an engineer at Google, he runs CyberWeb (cyberwebconsulting.com), a Python training consultancy. Wesley was one of the original Yahoo! Mail engineers and holds degrees in CS, Mathematics, and Music from the University of California. He is a Fellow of the Python Software Foundation and can be reached

View the profile

Chuan Ji is a software engineer on the Hangouts Chat team at Google, where he serves as technical lead for the developer platform. He previously worked on fighting advertising fraud on the Ads Traffic Quality team. Chuan has a B.A. in Computer Science and Economics from Williams College.

View the profile

Mike is a product manager on the new Hangouts Chat, leading the developer platform and integrations. Prior to joining the Hangouts Chat team, he helped launch and scale Google Drive. He holds an MSc from Columbia University and a BSc from Syracuse, both in computer science.

View the profile

About the talk

Earlier this year, G Suite launched Hangouts Chat, including its developer platform and API. Whether for your organization or customers, chat bots bring to life the next generation intelligent collaboration platform. Developers can now create bot integrations to streamline work—by automating manual tasks or giving users new ways to connect with their apps or toolchain, simply from chat messages. This session will cover what chat bots are, how to build them, and will go over some examples.

Share

My name is Mike. Cervello. I'm a product manager on the Hangouts chat bot framework. I'm here today with Wesley. One of our G Suite developer Advocates and Twine the technical lead for the Hangouts chat. Bot framework. So today we're going to talk about how you can transform your workplace with a Hangouts chat. Bot framework and just a quick agenda. I'm going to get some background about the new Hangouts chat and the Box user experience in case you guys have never tried the product before I'm going to pass it off to Westin twine to talk about the bot framework at API and show you a

ton of code samples and demos before I wrap it up. so quick show of hands how many people in the room use Hangouts today in Gmail or on mobile awesome so what you might not know is that millions of businesses use Hangouts today for direct messaging or lightweight group messaging with her company I'm always heard from these companies that that they're looking for more persistent place for their teams to collaborate and communicate so this past February we launched the new Hangouts chat it's currently available for G

Suite customers at no additional charge as a brand new text back with apps on Mac OS Windows Android iOS and web Its Global out of the gate. So Works in 28 languages and is accessible on all major screen readers on all major platforms. It really the backbone of a new Hangouts chat our rooms away to Center the conversation around a team of project and event basically anything you want. And it's obvious when you're working on a project you're going to be talking about a bunch of different things. I'm sure everyone in the room is experiences if you've used group

messaging before you maybe you're talking about something important something at work about work and then all of a sudden someone in the messages like hey guys, what do you want for lunch today? Alarm keeps going on and that's great. Then all the time. Someone else is probably hungry says I want Mexican. So when this happens, it's really hard to just figure out what's happening with the conversation. We should be focused on the conversations and rooms are threaded to prevent this exact problem. Running helps you separate the everyday chit-chat from all of the important stuff

and not only that you can segment the important stuff by different threads to keep context around those conversations. If you use Google Groups for email lists or identity management at your company, you can add to Google group to a room and then anyone in the room can also join the room. Overtime these rooms are going to contain all the things you talked about all the files you've shared. So everything's fully indexed and searchable and you can look for filetype keyword person looking one room many rooms, basically, however, you remember what you're looking for. Can you shut his

deep Integrations into G Suite so you can pick any doctor drive file from the drive file picker anytime. You paste a drive file or docs file a link to it. We will render a thumbnail and help you grant access to everybody in the room. I miss you find yourself going back and forth too much with someone or writing blocks and blocks of text. We help you with one click up the bandwidth of the conversation by creating a video meeting with her sister product Hangouts. Me there anyone in the room can jump in the beating and you can resolve what you wanted to resolve faster. So you're on a stranger

to conversational interfaces? We saw some pretty amazing things from the assistant team yesterday at the Keynote. And bought the workplace. What they really meant to do is help you blend conversation and tools to accelerate your work and reduce all the context switching that happens when you're working with a bunch of different tools at work. If you can talk to about privately and a one-on-one direct message or you can add about your room and then anyone in the room can at mention it to do something. I'm all you can take anything and make it a conversational interface. You could literally

take a 12-page form and make it a conversational interface. We really think conversational interfaces Shine for three main use cases at the workplace. When is asynchronous notifications don't misuse case something happens in a third party app and a notification gets plugged into the room where everyone can start a conversation about it. Another is one-off actions. So in this case, maybe you're talking about someone about what you need to do. And then you say hey project management bought create a task about this item and it does that and the third is clearing for information. So with this

use cases that are obviously in the third party app, and you just want to find it. So you say project management. What are Mandy Taylor's tasks? And it shows you what the tests are. One of my big Mantra is a Hangouts chat to me that box are people too. They rode alongside people and there's no heavy installation flow. Nothing more to learn if you know how to start a direct message with someone add someone to a room at mention someone, you know how to get started with a bot. Google launched a few pots of their own. When is the meat pot that lets you that uses natural language processing

and machine-learning to schedule a meeting and book a room for everybody in the room. Another is the Google Drive by that notifies you when new files are shared with you new comments are made or when people request access to your files and not only can you see when people request access but you can actually Grant access from the body itself. In fact in the two months since launching what we've seen is that people typically Grant access to files with the Google Drive by 8 times faster than they do with email. So think about that you can actually speed up a common workflow for any app

that you build by eight times. Play the number of third-party Box by like Trello to stay informed about your project progress without leaving the chat room. RingCentral to make calls or start video conferences with your room and your team jira, so you can get notified about changes the issues Taft bugs and then talk about these changes as they happen. Are excited to announce today, that box is launching a bot on Hangouts chat to help you find recent files or favorite files to open or share without switching context. The number box in many different business

functions like developer tools tasks CRM HR Support and more. Mountain passes over to Westin Swan to talk a bit about the bot framework and API. Great. Thanks Mike. All right, we're here to guide you on this comprehensive tour for the bot framework for Hangouts chat. So what we just saw from like are a bunch of public written by others whelp the end of the Rebel for everyone. But what I want you guys to think about is running bots on your own or there be for your organization for your customers or the world, you know, right public not like the others that you

seen. Let me be your noodle. Bots in your kind of like hesitating going in a how hard is it but you know. Put simply it's not that bad just think I bought says like microservices there a simpler less code and you don't have to write in the complete web app or mobile app. You have that complexity. So let's go means you can build your apps quicker. But how quick won't the Motorola CIO got a demo bought up in less than an hour. Of course that a bit more time to do one for real work. What is it do it talks to multiple systems and it gathers customer order and device warranty information to

present to perhaps the customer service agent who needs this information when they're on a call the main ideas that humans used to have to log into each of these system separately by hand Kool-Aid all that information before they could tell their customer but now the pot you can summarize all these results from all these different systems together in a single room. So that all the csr's can see this at the same time. Tomorrow when the blog post but we're here to help get you started. All right. Well building quickly isn't the only standout feature of Hangouts chat. We want to emphasize

the platform has a lot of flexibility. There's many different ways to implement and host your box. So we're going to go over some of the basics and then walk you through each option that you see here. All right. So quick review talking to apis and then comparing that with bots. So in this diagram, we have an application. We need to try and reach an API. It's the data is protected behind off until what typically has to happen is the user has to Grant access to your application through a loss. You guys have seen that little dialogue window, right? And once that happens then the

app is able to reach the API access that user secure data on their behalf. Do all the work that it needs two and then responds back to the user right everybody from there with this like a great so it would be a little bit different. All right, if it's kind of a three-tier architecture here and what happens is instead of a mess, you know request coming from an application request really comes from a user in a chat room. All right, they enter, you know, I want to talk to this spot. I'm going to send it this pelo. So that message gets entered into Hangouts chat that Hangouts chat contact your

boss your butt does all the work. It needs to do Kool-Aid to the information and then returns that information back to Hangouts chat with Stan renders that result in the chat room and cancel to little bit different the key takeaway here. Is that for your regular apps you call apis, but with Bots Hangouts chat called you. Alright suck noodle on this for a moment. And once you kind of brought this then the implementation path that you were going to take is going to be more clear and you can build your boat's faster. All right. Now the most efficient blocks are in a return plain text because

it's short it's faster to get the job done. But for a better user experience Hangouts chat supports richer you wise called cards. That allow you to structure your response data, for example, if you look at the card sample here, you can see that you know, you could have returned five lines of plain text and did it done its job. But this you like hard is more pleasing visually. In fact, they can communicate more than just plain text. For example, you can see that there's a visual cue to show that two of the five top have been completed. Okay from this project management, Bop Its managing like

one of your reports, right? So that visual cues really helpful. And if you were to do that in plain text, you have to add some extra symbols which may not you know, which may get in the way of the day that that's coming back. Right so cards are great. We'll look at them a little bit more later. Now if you already have an app with Dana that's kept secure behind a wasp. You can still expose some of your app functionality within Hangouts chat are often config flow. Let's your users login to your app directly from Hangouts chat. Now, it's similar to this example where you see the task tracker

bot. Which stores Formation of Google sheet rock meaning of the sheet is protected data, right? So the user has to allow your bought access to that spreadsheet and then once the off Lowe's complete then users can now access your app and their secure data directly from Hangouts chat rooms and direct messages. All right before showing you the code. I want to give you a quick rundown of the event types that Hangouts chat sends to your boss. So your body can take action when it is for example added to a space is a great place to send a welcome as just like hey, thanks for adding me to this

room. Here's how to use me. It's also can take action when it's removed from a space life logging things or doing some kind of cleanup business logic. The most common event type is message, which is just when I bought receives a normal message and her by user in a rumor DM and then the last one is card clipped which is when a user clicks on one of the UI card elements just looked at earlier. So to keep things simple working as focus on the the ladder pair. Alright, let's start with standard box that are running over HTTP as mentioned before the development environment is quite flexible glass

can be created and host it on any platform. In other words your language your stack your cloud or ours, right? So I presented at the top here, you know, some Google Cloud platform of gcp products in Firebase products that you could use but you don't have to all right. So Hangouts chat also works with bot related environments like dialogflow and you bought will demo some bots in some languages that you see here, but it really doesn't matter as long as the Hangouts chat service. Can HTTP post to your boss. That's all that's really necessary. All right, you guys ready for your hello world?

We're going to start with the echo box and a happy to pass it off to Tuan. Who's the engineering lead for the Hangouts chat bot framework. Thank you, please. I think anybody see my screen great cool. I'm so for those who you haven't used Hangouts chat to for what you're seeing right now on my screen is the Mac OS desktop app for a Hangouts chat down the left. You'll see a list of rims and direct messages that I'm a member of and on the right and you will see a message screen so I can screw up a little bit. I can see the group conversations, right? Of

course. I can create a new conversation here. So let's take a look at a very basic bot robot would simply rights back whatever the user say incense to it. So I'm going to talk to cure robot High. Asking to say hi back to me. All right, cool. So you say you saw that song the way I talk to hot is by mentioning it in a message. So in rooms only messages that directly mentioned about get sent to the corresponding bought. So the rest of her conversation with your way through team

is private. This is not the only way you can talk to it. You can also have a direct message message with ought to hear you can see I already have a direct message with the echo bottles well and here you can see I don't have to mention the echo bot all I every message I say in this wreck message is going to be sensitive spot because that's the only other person in his message. Cool. Now that we've seen how you could interact with the echo bot in Hangouts chat. Let's take a look at how it's built. tobacco pipes Alright, so here's the uncle bought him full glory

in Python. This example uses the popular flask web framework, which is host a ball on that benjen compute engine or really any Cloud supporting python web apps that you can see from the top of the function there Hangouts chat post 2 / and it which is the code scans for the Json payload for the message type. And then it Returns the same message string along with a user username of whom ever called the bot just like aunt wants them know that you just song Now python isn't the only choice for example, maybe you have a mobile app and using Firebase will evolve your code is on Firebase really

necessarily want to host your bots on something completely different right perfectly fine. So here's the same body nodejs and hosted by Cloud functions for Firebase. If instead most of your back and it's on gcp then you can host it on the sister product Google Cloud function the code to be nearly identical so if you take a look at the code hear it does in a pretty much the same thing as all the other scans the end. Message for message event then it returns a username as strong as before and it really doesn't matter to Hangouts chat that your coat is in JavaScript or Python and he'll

sit on Firebase or Google Cloud functions. Remember Hangouts chat only knows how to http post to your Bot. All right. So, how are you guys doing so far one Seymour code? All right. Switching gears a little bit. Let's talk a bit about Google Cloud pubsub. So what is it men, if you know that it's a real-time event streaming and messaging system where you can have many producers and consuming reading and writing and probably at different rates and all of course could be coming from different applications. But what does this have to do with Hangouts chat? Well, the

platform is supposed to be flexible. Right? What if you decide to host your bots on premise in behind a firewall? Well in this case Hangouts chat can not contact your bod. So what can you do all this is the perfect use case for pubsub Hangouts chat send a message to Pops up instead of your body because I can't reach it. Your boss has to register a pull subscription which allows the bought to get the Hangouts chat messages from Pub sub and bring it through the firewall and then your on-premise Bodkin service request do all the calls that needs to do gathers up all the information and

then responds back to Hangouts chat like normal. Alright, let's see how to use it. Turn the nest example list of java version of the echo bot. Okay, because a lot of Enterprises use a job, and so we want to show an example in this language as well. So like Python and no you can see that the code handles the event it scans for message type and it replies to Hangouts chat with a message text and username. It's just like the others but perhaps maybe a tiny bit more verbose right? Well, that's great. But what does bought is in our corporate data center behind that far wall. Well, we just

mentioned a minute ago that pops up is the right solution. So how do we treat corbacho to work with pubsub all turns out it's not too bad. So if you look over here, you can see the extra code that we added to our job at Echo bot that uses object mapper to convert between Json in Java objects. It's been able to get the message from Pub sub and converted to Jason for processing. It passes that event object to the handle method that we saw the previous slide which then handles a message as if it was sent via HTTP post from Hangouts chat. It doesn't know the difference. All right, so, that's

awesome. All right, so we discussed hosting on Google's Cloud your cloud with or without a firewall. Let's bring it back inside Google with a little twist called Google App script the first things first quick quiz. How old if you feel it's important to have off to help keep your users data secure, right yeah me too now how many of you like writing off code yeah. Yeah, that's why I thought what about managing your own server Azure VMS on premise or in the cloud. He's either right so that case a script is for you have you

heard of asking before how many of you have heard about to go before a couple of years decade ago? So what is it it's a customized JavaScript environment where we take care of the servers and off and you have access to more than 40 G suite and Google apis with just function calls. Now if you try to build a bot with it, we actually provide you with one click bot template so that you're already given a basic working boss 1/2 on right away. Check out the video if you want to learn more about the secret. All right. So ask if it's a service environment for

all developers including sometimes developers like all you products of business analyst and data scientist out there. Now. Here's the a tackle box in a script now. Let's pause for a minute here really look at this code while it's identical and functionally as the others. It's only one line of Code online, right and not only that it's the easiest way to deploy a bot within your organization. All right. So the echo part is a good start. But Swan. Can you show some more useful apps with pot? Sure. All right. So just like the echo bot. We're going

to show you a very quick bought that steaks in the user input button. But in the stead of just returning to do a little twist working to translate it, so it's all right. So I'm going to say Welcome to Rio in English. skinny fish back the same message but in Japanese cool. So take a look at how that's built. Let's go back to the slides, please. Serious notice how it's almost as simple as the echo bot. The only difference is that we're now calling the Google translate API and how do we call the Google translate Epi? It's just a function hall away,

right? You're not importing a speaker. You're not downloading anything. It's just there and you can see how it's very intuitive to use. U-pass it. The messages are sent in this case. It's alright. Message to argument text argument ex being the text. You just sent without the Pazzo name in it. And you passed the source language and the target language and they were trying to resolve as text Thomas to simple right at a more advanced example. So what's up? So

information for the stalk our team has been using a and I build a simple box to take a look at where everyone sat in terms of their tasks. So I called the task tracker bought so I'm going to call it here. Okay. Okay. So looks like we have a bunch of tasks pending here. So take a look at the spreadsheet. I can guess you this message. Okay, so you can see this is a Google spreadsheet and Status. Do you see the body is really pulling the data from the spreadsheet showing the

tasks that are not yet completed. So I'm going to mark all of these has completed right now since we're all already standing on the Iowa stage in the marketing is completed and I'm going to go back to the map and went to query it again through my bass Tracker. And this time is going to tell us that there are no more tasks for a videos coming soon, by the way. Hi, it's Scouts life. Alright, so this is the color. This is the code for the past tracker bot

on one slide. So it's really not that complicated can see we're doing we're doing some pasta secure way to call. We're opening up a spreadsheet by special. Don't open my ID. We're grabbing the data from the spreadsheet in a two-dimensional Ray. We're doing a little bit of processing here removing the first row, which is just call names belting out. The roads are already completed mapping each row into a string putting them together into a message and then returning them to Hangouts chat what I don't see any offshore API calls here. That's a very good question list.

So notice how I mean just function calls to open my ID. Classes are using SDK. You just call them as if they're built an addition. You don't have to write an explicit authentication code. Right? So obviously this spreadsheet is visit. It's not supposed look Invisible by it because I've used to spot before I have given access to it. And Google app script is responsible for dunno Henley all of that. It's you don't have to write a note off callback. You don't have to store the off tokens have

to refresh them. It's all taken care of by a basket. So after the user logs in for the first time I asked if we'll take care of it. All right. So so far. I'm the boss. You've seen collect data and return them in plain text. But let's take a look at how to present a richer UI in the form of cards. Right? Well, it's true that plain text is the easiest and fastest but for the cards, but you got to use car to make a response look good, right? So that's that's what this is for so you can use Jason markk up to construct the UI card and the best part is that it's write once

Run Anywhere iOS Android Oreo covered. You don't need to write a separate mobile version of your Bot. Car can be interactive like a pole. You see here users interacts by clicking on the boat button cars are also updatable. So when you submit both the bar chart and the Boat Company update now that the user experience would be much worse. If a new card was Generator for every Boatwright. the bot framework supports of a variety of widgets So here are a couple to get an idea like buttons formatted text structure data images links and more but really the widgets are just building blocks. The

real magic is when you flip them all together and assemble them into cards, whether their interactive updating or both. Alright, so try let's see a demo of a bot that has interactive and updating cards. All right, thank you. So, it's a great day here today at the Shoreline Amphitheater. How many of you have been to Shoreline Amphitheatre before? Okay, some of you okay, so that's more than I expected actually, but for the rest of you just helps us find Charles Amphitheater on Google Maps.

Where is Shoreline Amphitheatre? And what the spot does is pull up a map of the show Shoreline Amphitheatre and it's the image of the map. I don't see any Amphitheater there. All right on the bottom. You can see a row of buttons and guess what happens? I don't see it still. Oh wait, there it is. It is. So the pause button Zooms in and then my new spot in Sea Bay Area and all of its Glory. Let's Google maps icon down there. Right when you click on this party on web. It will take you to be Google Maps

sites that with Center down on the location. I typed and on mobile it will of course take you to the Google Maps app. Cool check to see how he's built. Go back to the side. Great. So here's the first we're going to start without familiar en message function. So as you guys already know the on message function is invoked when the guy said where is Charlie Amphitheater, right? So it's job is to return the card. But in this case were going to move the logic for constructing the card into a new function. We're going to show called Bill message here that suckle message takes him three arguments. It

takes in the location of these are types, and it's going to take in the third time. It was just a response type. So when a new message is sent we want to send a new message. So now let's look at build message for this is kind of a meat of the the code. I just saw before he takes any location that uses Heights. It takes initials win level and he takes in response to type. So we're going to do in build a message is that we're going to construct each elements for each

widget inside this card in sequence. The header skinseed just like the header at the other witches are the same on all of these witches are represented by a plane JavaScript object and the header has two properties of title. I have an icon. Next we're going to build the image from Google. The map image will still take a look at how that's built in the next line and then we'll construct the robot that you see on the bottom. So not to hear we're going to have right creating two more functions build Google Maps link location, and we

build a function called build the location and the target zoom level that they usually taken to when they click the button. Define where we're going to put it all together into one big Json object and return this job has this subject back to Hangouts chat and activate the card. Let's look at each of these widgets. The first let's look at the old image. It shows a widget from Google image from Google Maps image widget. So in this example, we're going to use the Google Maps API, which you might notice this again built into a

script to say Maps the new static map. They said a bunch of parameters zoom level marker. That's the real red. Can you see there and we can just grab him Matthew or Mathew were all pretty simple right away and it's going to take you out and Constructor JavaScript object that represents the image which it and return it. I forgot to fill the zoom buttons remember that he's Ubuntu interactive. So in addition to creating the UI side of things we're going to add a text. This person has a text label. We're going to have a nun collector

amateur. What's inside The Enclave parameter? It's like to be the payloads that we want sense back to our boss when the user interacts is one of these buttons since you're going to said two primers the location music typed in the beginning and then you zoom level that user will be taken to when they click the button. So, like I said, this this object is going to be sent back for a bath when the user clicks this one. So, where do we receive this Palos? You receiving the function called on card click. So just like on message which is triggered. When you to send a message on card click is

triggered when a user clicks on the card. So what he receives is the payload of the button the user collect so we can extract the primaries that were assigned to the button and see you extracted vacation zoom level to make sure the zoom level isn't out of bounds and I guess what we just call the same build message function that constructed the initial card. The only difference is that in this time. We're going to set the timer to update message is not the house the new message to update the original car that user clicked on. The

final we have the icon on the bottom left that takes the user to Google maps to like the Zoom buttons. It's going to have fun but it's not going to have an uncle like Handler pelo that we return to the bot because we don't want the Box even though we just want to send the user directly to Google Maps. So here we construct a link to Google Maps and then we attach it to the open links property would just instruct spam chat to not deliver the response back to to to the park with just call open Google Maps. So I want to stress that

this example shows you how to build this kind of interactivity in app scripts. This functionality is not limited to ask if you release your boss if you build a bot in using HTTP endpoint or so what is really means that you can feel the same user experience with cards and apply it to the environment of your choice. So far, we've shown you faster response to something user. So, I just had to send a message or two like an apartment for your box to do anything. But what if the

bought you to notify the user about something? Fight. So thanks Mom cell. Framework support asynchronous messages, which are perfect for long-running jobs are out of band notifications asynchronous messages can also be sent to specific threats for contacts. So here are bought needs to the contact Hangouts chat. So some all off is needed. All right. So when you Co-op is a strong indication of using an API, so there's no exception here is a bot have to call in to Hangouts chat now. So this python sample uses the boss permission scope plus a service account credentials that you got downloaded

from your API project. And then once you have the credentials you established a service endpoint to the API like you see with the discovery. Build call, then you can use the API to send message to Deanna more room now, like any other bought this by can call other apis I could do any other processing that you want to have it done and then collect the information and it send it back into the room of the DM. Alright more generally besides his creating messages the AP I can do all credit operations on messages. It also has additional features to give you more context like getting

information on rooms and diem or members who are in rooms in DMs. In addition to the API Hangouts chat also supports incoming webhooks. Now. These are great for a one-off alerts like when a server goes down there quick and dirty or quick and easy in you can integrate with any of your custom workflow. And the way you do it is you go to the room with the DM and you pull down configure webhooks. And then from there you can see all the current webhooks that are currently Define and you can have different one because you may have different apps that are posting different alert, right? You just click

on the icon to the right to copy the webhook URL to use Now incoming webhook scan come from variety of sources like monitoring apps or even the command line. So which one is going to prove this by doing an incoming webhook from a curl command? Alright, thank you. All right. Thank you. So is West showed you the way you can figure out where she gets her room like we're going to see a dialogue here that shows you the right books. You can figure it going to have a URL hear that you can use in this particular case

and it just wants to send a quick notification into Hangouts chat when something happens. So switch to terminal here and it's going to be better here and screens contain the URL. I copied from the dialogue from in Hangouts chat in the background. And the Texans going to send this remember? This is the same payload the same Json object that you would send from apps Cuts or either. She just sent it as a pillow. And if everything goes well, you can see here before you close the terminal you can see that I've gotten back us response to

things like the idea of the message that was just created a space that was posted in and so on. Take a look at this message in Hangouts chat created in you conversation. Right and it contains the text that we were just sent to it. Let's go back to the slots. One of the most Innovative features in Hangouts chat has Mike explains you guys earlier is private conversations. So grouping irrelevant irrelevant contacts together in the context of imaginary task manager app. What would really like to see is the history around a particular

task group together in the top thread you can see here. So what this means is that all the relevant discussions from people that all the relevant notifications on this app get grouped into the same conversation is very easy for people to understand what's going on. So, how do we do this? Just like you saw the full on my on my screen after you send the request to Hangouts chat to return the date of the IDS. And so on that they're about the about the messages read it. You can remember that. You can remember the association between house tidy and the thread ID and that's perfectly fine.

There's nothing wrong with that. You can totally do that. But this is a really, use case. We thought we could make it more convenient. So what's the solution we came up with the idea for the red key? So you can take a Frankie as a customer identifier. It's okay to Hangouts chat, but it's some identify that make sense to you in your problem to me sample this in the customer ticket tracking system to get custom ticket ID. Maybe a customer order ID doesn't matter what you do with it that you make and

we do have a lifting we won't remember this the first time we see a message that has a particular trick. He will create a new conversation. So secret messages if post into the same conversation. So now you don't have to remember that mapping between an entity in your problem domain and a thread or a conversation in Hangouts chat. What's this example cure on the slide shows you a Kohler Command simple, but this works for Fox as well. So you could write spots on strike e to do the

same group conversation conversation. Right. So this wraps up our introductory tour of the Hangouts chat bot framework to take us across the finish line. Thank you Wes entwine just summarize what we talked about today. So the Hangouts chat service with Bots helps teams accelerate their teamwork and productivity. You can stay notified automate tasks where can information all without changing any contacts and like they showed you there's many different ways to connect you can spin up your own web service using any cloud or

when would you want you can use cloud pubsub to work with a firewall inside your organization or the easiest way if you're building a custom bot to streamline a workflow is using a script where you don't have to worry about servers off or anything like that. So we get started check out developers. Google.com Hangouts chat for all more documentation on how to actually do all this if you're a g Suite customer and you haven't tried Hangouts chat today. You can go to chat. Google.com to try the product itself. And if you have more questions, we're happy to answer them and don't be will be

getting some more demos and we could show you some more details and how to publish pots and whatnot. So before we all leave we want to hear from you, so please provide feedback for the session at google.com / IR / schedule and thank you for coming enjoy the rest of the conference.

Cackle comments for the website

Buy this talk

Access to the talk “Transform the way you work with Hangouts Chat bots”
Available
In cart
Free
Free
Free
Free
Free
Free

Access to all the recordings of the event

Get access to all videos “2018 Google I/O”
Available
In cart
Free
Free
Free
Free
Free
Free
Ticket

Interested in topic “Software development”?

You might be interested in videos from this event

September 28, 2018
Moscow
16
159
app store, apps, development, google play, mobile, soft

Similar talks

Hiranya Jayathilaka
Software Engineer at Google
+ 1 speaker
Jen Person
Developer Advocate at Google
+ 1 speaker
Available
In cart
Free
Free
Free
Free
Free
Free
Jonathan Gerrish
Software Engineer at Google
+ 1 speaker
Stefan Ramsauer
Software Engineer at Google
+ 1 speaker
Available
In cart
Free
Free
Free
Free
Free
Free
Kat Fang
Software Engineer at Google
+ 1 speaker
Kiana McNellis
Engineer at Google
+ 1 speaker
Available
In cart
Free
Free
Free
Free
Free
Free

Buy this video

Video

Access to the talk “Transform the way you work with Hangouts Chat bots”
Available
In cart
Free
Free
Free
Free
Free
Free

Conference Cast

With ConferenceCast.tv, you get access to our library of the world's best conference talks.

Conference Cast
558 conferences
22059 speakers
8190 hours of content