AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |
Back to Blog
Create chatbot hangouts11/30/2023 ![]() For your service account name, enter: “My First ChatBot Service Account.” An account id will be generated automatically (my-first-chat-bot-service-accou). ![]() On the Credentials screen, click + CREATE CREDENTIALS and select Service account.Once enabled, Click Credentials on the left side.Next, you need to enable the Chat API in the projectįrom the main GCP Dashboard, click “goto APIs overview” to open the “APIs and Services” Dashboard. Goto and create a “New Project” (you can name it “My First Chatbot”).Īccept the defaults for Organization and Location.Ĭlick CREATE, and then select the new project in the console. Here, you’ll create and configure your GCP project so that it can serve as the chatbot backend. Step 3: Create and configure your GCP Project Click Close and Close to dismiss the dialog boxes.Copy and save the Deployment ID for later.It will look something like: AKfycbyS1N2v-_ZVNldWGBuY4azxodbOE06PTJGXKBU9hV3m In the Deployment ID dialog box, copy the value listed for the deployment ID.In the Deployments dialog box next to Latest Version (HEAD), click Get ID.To get a deployment ID from the Manifest: Our next steps are to associate the bot’s Apps Script project with a GCP project by getting the Apps Script project’s Deployment ID and saving it for later when configuring a GCP project. That’s all the Apps Script code needed to run the chatbot! Step 2: Saving your deployment ID To add chat capabilities to this project, simply add ”chat”: to the manifest.This opens the file appsscript.json (manifest) file in the script editor.Access the Apps Script project’s Manifest file.Go to, click the “Create Project” button, name your project “Hello ChatBot”, click Save. Step 1: Create and configure your Apps Script project Now that you’re ready to get started, here are the basic steps to build and test your own chatbot in Apps Script. You’ve got G Suite Admin authority (you’ll need this for domain-wide publishing-for the simple testing described in this walkthrough, however, G Suite Admin authority isn’t needed). You’ve got a basic familiarity with Apps Script and/or JavaScript. You can create projects on Google Cloud Platform (GCP). Pre-reqsīefore diving in to this guide, please make sure you meet the following prerequisites: MailApp.SendMail(“ Subject”,“Hello from Apps Script!”) Īpps Script code development can also be done entirely in a browser, so there’s no need to install a local software development environment (for more on Apps Script, check out this Apps Script Overview). For example, to send an email in Apps Script, you can simply use: It offers direct code access to a variety of Google products and APIs via its extensive library of services.Īpps Script is typically used to enhance the functionality of G Suite products (Google Sheets, Docs, Slides, Drive, and Gmail) by offering a streamlined “low code” approach. What is Apps Script?Īpps Script is a cloud-based scripting language and runtime environment based on JavaScript. Here’s a step-by-step guide on how to build your first Google Hangouts chatbot using Apps Script. Also, because Apps Script offers native G Suite integration (including authentication), it can be the most pragmatic choice for building G Suite-centric chatbots on Google Hangouts. You could, for example, build Google Hangouts chatbots using a variety of different technologies including Cloud Functions, HTTP web services, Cloud Pub/Sub, and Webhooks, to name a few.įortunately for those who are in the early stages of learning to build bots for Google Hangouts, the “low code” Google Apps Script environment provides an easy path to get started. Similarly, building Google Hangouts chatbots can require some early decisions on server architectures, technical implementations, and even programming languages. Learning to build chatbots, with all the available approaches and technologies, can seem daunting.
0 Comments
Read More
Leave a Reply. |