Skip to content

This example doesn't work anymore, please update it #11

@Roman-Hahnair

Description

@Roman-Hahnair

After spending a massive amount of time trying to fix it, I've found a way to make it work.

I did the following:

  1. Complete the steps as described in the Option 1: Add to Dialogflow in the readme

  2. In the package.json, change the firebase admin version to:
    firebase-admin": "^6.0.0

  3. in the index.js, add the following lines after "use strict":

var admin = require('firebase-admin');
admin.initializeApp({
  credential: admin.credential.applicationDefault(),
  databaseURL: 'https://<DATABASE_NAME>.firebaseio.com'
});

No need to replace DATABASE_NAME with anything, just leave this string as it is.

I'm not sure if all of the additional steps are actually required. But my bot is now able to get the weaather.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions