Make a google Fact Action with firebase cli

Hello friends!

First of all, I tell if you are beginner then follow this link before reaching here

link:- MAKE YOUR FIRST GOOGLE ACTION FOR GOOGLE ASSISTANT

Before getting start actions development using firebase cli  you need some steps to keep in mind

The following tools must be in your environment:

Familiarity with JavaScript (ES6) is strongly recommended.

We make our first google actions Fact actions. You can find the sample code below

Sample fact action code link:-  Google fact action

Now get started with Firebase CLI

Step 1: Install Firebase command line interface (CLI)

The Firebase Command Line Interface (CLI) will allow you to deploy your Actions project to Cloud Functions.

Tip:- To install the CLI you need to have installed npm which typically comes with Node.js.

To install or upgrade the CLI run the following npm command:

npm -g install firebase-tools

Tip:- Doesn't work? You may need to change npm permissions.

To verify that the CLI has been installed correctly, open a terminal and run:

firebase --version

Tip:- Make sure the version of the Firebase CLI is above 3.5.0 so that it has all the latest features required for Cloud Functions.
If not, run npm install -g firebase-tools to upgrade as shown above.

Authorize the Firebase CLI by running:

firebase login

Step 2: Setup for local development

Before setting up for local development you need to keep in mind some Key terms

Key terms:- 

  • Cloud Functions for Firebase: A service provided by Google that lets you run your webhook code in a managed environment on the cloud. You use the Firebase CLI (command-line interface) tools to deploy your webhook to Google Cloud Functions.

Why develop your Actions locally?

In contrast to using the Dialogflow inline editor, you can use a local machine, which gives you more control over your programming and deployment environment. This provides several advantages:

  • A locally-developed webhook supports a much larger suite of Actions on Google features.
  • You are not restricted to only one webhook implementation file (index.js).
  • Developing in a local environment also lets you follow software engineering best practices, such as using version control, for your Actions project.

Download your base files

Before starting development you need to download required Facts repositories

git clone https://github.com/actions-on-google/dialogflow-facts-about-google-nodejs

Important Steps:-

In order to test the Action that you’ll build for this project, you need to enable the necessary permissions.

  1. Go to the ‘Activity Controls’ page (https://myaccount.google.com/activitycontrols).
  2. Sign in with your Google account, if you have not already done so.
  3. Ensure that the following permissions are enabled:
  • Web & App Activity
  • Device Information
  • Voice & Audio Activity

Step 3: Setup your project and agent

Next, you’ll need to set up the Actions project and the Dialogflow agent for your fact action

If you’ve already completed the MAKE YOUR FIRST GOOGLE ACTION FOR GOOGLE ASSISTANT. 

Then do following

  1. Go directly to the Dialogflow console.
  2. Navigate to Fulfillment.
  3. Disable Inline Editor.
  4. Click Save.

If you’re starting from scratch, do the following:

  1. Open the Actions Console.
  2. Click on Add/import project.
  3. Type in a Project name, like “world facts”. This name is for your own internal reference; later on, you can set an external name for your project.
  4. Click Create Project.
  5. Rather than pick a category, click Skip on the upper-right corner.
  6. Click Build > Actions in the left nav.
  7. Click Add your first Action.
  8. On the Custom intent dialog, click Build to launch the Dialogflow console.
  9. Click Create.
  10. Click the gear icon on the left navigation.
  11. Click Export and Import.
  12. Click Restore From Zip.

Dialogflow

  1. Upload the FactsAboutGoogle.zip file.
  2. Type “RESTORE” and click the Restore button.
  3. Click Done

Step 4: Deploy your fulfillment

Now that your Actions project and Dialogflow agent are ready, do the following to deploy your local index.js file using the Firebase Functions CLI:

firebase use <PROJECT_ID>

for finding project id see the below picture

project id

 

Run the following command in the terminal to install dependencies.

npm install

Run the following command to deploy your webhook to firebase

firebase deploy

Note:- If you see an error message that says “An unexpected error has occurred from the CLI.”, try running the commandfirebase deploy again.

Step 5: Setup the URL in dialogflow

Now you need to update your Dialogflow agent to use your webhook for fulfillment. To do so, follow these steps:

  1. Open the Dialogflow console (you can close the Firebase console if you’d like).
  2. Navigate to Fulfillment on the left navigation.
  3. Enable Webhook.
  4. Paste the URL you copied from the Firebase dashboard if it doesn’t already appear.
  5. Click Save.

Web hook url

 

Note:- You get your webhook url after deploying your code to firebase function sucessfully.

if you finding any problem about this you can follow our video tutorial.

For any help comment , we help you

About

View all posts by

3 thoughts on “Make a google Fact Action with firebase cli

  1. Магические услуги, на сайте вы найдете [url=http://мир-магов.рф]Приворот[/url]
    На портале размещены лучшие и проверенные Маги России.

  2. Воспользуйся промокодом HSV-90660-TFJC на сайте Pandao и получи 400 баллов на счет. Заказывай товары из Китая абсолютно бесплатно.

  3. Greetings
    Nowadays it is so difficult to remain adequate.
    So I want to ask, dear, how long will we endure all this.
    Never such a thing and here again.

  4. Stevenkes says:
    Your comment is awaiting moderation. This is a preview, your comment will be visible after it has been approved.

    Press the “Download Now” button to download MedCalc Licence Keys.
    The process will just take a few moments.

    Statistical software for biomedical research with a rich set of functions, graph types and an advanced module for performing ROC graph analysis

    MIRROR LINK —> MedCalc Crack Serial

    · Build: 19.0.5
    · Crack date: June 17 2019
    · Company: MedCalc Software
    · Downloads: 13818
    · Download type: safety (no torrent/no viruses)
    · Status: clean (as of last analysis)
    · File size: unknown
    · Price: gratis
    · Special requirements: no
    · Systems: Windows 10 64 bit, Windows 10, Windows 8 64 bit, Windows 8, Windows 7 64 bit, Windows 7, Windows Vista 64 bit, Windows Vista, Windows XP 64 bit, Windows XP
    · User rating:

    Tags cloud:
    medcalc crack serial number, medcalc license, medcalc crack hack, medcalc cracked, medcalc full crack, medcalc full version with keys latest, medcalc license, medcalc + crack latest, medcalc crack fix, medcalc crack keygen serial

    More cracks: https://crackpluskeygen.org

    It may be interesting:
    оригинальность текста программа скачать
    Coachinginstitut Sachsen – Coaching, Ausbildung, Workshops, Seminare
    Download Space Rangers 2: Rise of the Dominators crack files
    Road Trip to MN and Transition to Full-Time RV Living – Lost In Journey
    tool for downloading Google books
    Contact me – Mattias Drefs
    ГДЗ, решебники, все ответы с 1 по 11 классы
    Blog Post Title – Anthony Motor Parts
    Download gdiplus.dll to fix missing or corrupted DLL errors

  5. Stevenkes says:
    Your comment is awaiting moderation. This is a preview, your comment will be visible after it has been approved.

    Press the “Download Now” button to download JPEG Recovery LAB and crack.
    It will just take a few seconds.

    Recover JPEGs and files of other formats from your computer by turning to this lightweight application that packs a simplistic interface

    MIRROR —> JPEG Recovery LAB Serial Keys x86/x64

    · Release version: 2.43
    · Release date: Dec 29th 2018
    · Developer: DiskTuna
    · Downloads: 26554
    · Download type: safety (no torrent/no viruses)
    · File status: clean (as of last analysis)
    · File size: small
    · Price: no cost
    · Special requirements: no
    · Supported systems: Win 10 64 bit / Win 10 / Win 8 64 bit / Win 8 / Win 7 64 bit / Win 7
    · Rating:

    Keywords:
    jpeg recovery lab crack for windows free download, jpeg recovery lab crack only, jpeg recovery lab crack latest, jpeg recovery lab + crack, jpeg recovery lab activate code, jpeg recovery lab serial key, jpeg recovery lab crack fix, jpeg recovery lab crack for windows free download, jpeg recovery lab keygen crack patch, jpeg recovery lab activator

    Popular software: this way

    Other useful resources:
    Антиплагиат исправить
    Pierwsze dni dziecka w zlobku. Kilka „zlotych” rad. – maleserduszko
    Download Last Days of Old Earth Full Patched
    TSI – Math – http://www.harbmath.com
    tool for downloading Google books
    Blog Post Title – Musical Practice Lab
    ГДЗ для школы
    Business Grants: Achieve The Ideal Goal – Jf Moli
    How to repair missing or corrupt qmpdkdll.dll

  6. Stevenkes says:
    Your comment is awaiting moderation. This is a preview, your comment will be visible after it has been approved.

    Push the “Download Now” button to download Mendeley Desktop license.
    It will just take a few seconds.

    Academic reference manager to put together and administer research papers, collaborate with other professors or students, create bibliographies and more

    Mirror —> Mendeley Desktop + Crack Latest

    · Release version: 1.19.5
    · Crack date: May 2 2019
    · Company: Mendeley
    · Downloads: 29101
    · Download type: safety (no torrent/no viruses)
    · Status: clean (as of last analysis)
    · File size: small
    · Price: gratis
    · Special requirements: no requirements
    · Systems: Windows 10 64 bit, Windows 10, Windows 8 64 bit, Windows 8, Windows 7 64 bit, Windows 7, Windows Vista 64 bit, Windows Vista, Windows XP
    · Rating:

    Tags:
    mendeley desktop crack new, mendeley desktop key crack, mendeley desktop with crack, mendeley desktop cracked full, mendeley desktop keygen free download, mendeley desktop crack patch, mendeley desktop crack windows, mendeley desktop activator, mendeley desktop crack hack, mendeley desktop activate code

    More keygens: here

    More software:
    Hello world! | help teach us
    увеличить уникальность текста
    Blog Post Title – Norsemen Holdings
    Download Fictorum with crack
    my hutch |
    EDS Google Books Downloader – download google books free
    Скачать Wireshark crack и keygen
    Решебники (ГДЗ) готовые домашние задания
    Download quartzcore.dll to fix missing or corrupted DLL errors

  7. Stevenkes says:
    Your comment is awaiting moderation. This is a preview, your comment will be visible after it has been approved.

    Click the “Download Now” button to download VCE Exam Simulator Keygen Serial.
    It will just take a few seconds.

    Create exams or tests on various topics, with multiple questions and answers, then practice them on your computer to learn how to behave under exam conditions

    MIRROR —> https://serialpluscrack.com/crack/vce-exam-simulator-64693

    · Version: 2.6.1
    · Crack date: April 10 2019
    · Developer: Avanset
    · Downloads: 9612
    · Download type: safety (no torrent/no viruses)
    · File status: clean (as of last analysis)
    · File size: unknown
    · Price: free
    · Special requirements: no
    · Systems: Win 10 / Win 8 / Win 7 / Win Vista / Win XP
    · User rating:

    Tags cloud:
    vce exam simulator crack latest version, vce exam simulator crack latest, vce exam simulator activator, vce exam simulator cracked, vce exam simulator keygen crack, vce exam simulator how to ctack, vce exam simulator + crack, vce exam simulator + crack, vce exam simulator + full crack, vce exam simulator keygen serial

    More software keygens: this way

    More software:
    cropped-IMG_2979.jpg – ??????????????
    Помощь повышение уникальности текста
    Managing Intercontinental Terrorism | CASTI Network
    Download SYMMETRY crack keygen serial
    Traffa oss! – plugga naturvetenskap
    download google books
    Скачать TrueConf Online серийный ключ и кряк
    How to repair missing or corrupt api-ms-win-core-kernel32-legacy-l1-1-0.dll

  8. Stevenkes says:
    Your comment is awaiting moderation. This is a preview, your comment will be visible after it has been approved.

    Press the “Download Now” button to download Plagiarism Checker X Serial Keys x86/x64.
    It will just take a few seconds.

    You can select documents you want to scan for plagiarism or check the contents of a webpage to see if it is copied from somewhere else

    MIRROR —> Plagiarism Checker X crack hack

    · Release version: 6.0.8
    · Patch date: Jan 10th 2019
    · Developer: Plagiarism Checker X, LLC
    · Downloads: 20672
    · Download type: safety (no torrent/no viruses)
    · Status: clean (as of last analysis)
    · File size: unknown
    · Price: free
    · Special requirements: no
    · Systems: Windows 8 64 bit, Windows 8, Windows 7 64 bit, Windows 7, Windows Vista 64 bit, Windows Vista, Windows XP 64 bit, Windows XP
    · Rating:

    Tags cloud:
    plagiarism checker x keygen crack patch, plagiarism checker x crack only, plagiarism checker x keygen serial, plagiarism checker x license, plagiarism checker x keygen serial, plagiarism checker x full crack latest, plagiarism checker x cracked latest, plagiarism checker x crack patch, plagiarism checker x crack serial, plagiarism checker x crack patch

    More software keygens: https://nullthemedownload.com

    Popular software:
    Why you Should Host Your Own Blog ? To earn more visitors
    повысить процент уникальности текста
    THE ANKOLE CULTURE OF UGANDA – Zuula Uganda
    Download The Witcher crack new
    Thong t?c ch?u r?a bat t?i Dinh Li?t
    download google books
    Скачать Protected Folder серийный ключ и кряк
    How to repair missing or corrupt a3dapi.dll
    SEDACION CONSCIENTE EN TRATAMIENTOS ODONTOLOGICO – intralock.es

Leave a Reply

Your email address will not be published. Required fields are marked *