Git Product home page Git Product logo

fulfillment-slot-filling-nodejs's Introduction

Dialogflow Fulfillment Basic Slot Filling Sample

Slot filling simplifies your agent by letting you obtain multiple, required parameters within a single intent. If any parameters are missing from a user utterance, your agent will automatically prompt users for the required parameters.

Setup

Select only one of the options below.

Option 1: Add to Dialogflow (Recommended)

To create this agent from our template:

Option 2: Firebase CLI

  1. Create a Dialogflow Agent.
  2. git clone https://github.com/dialogflow/fulfillment-slot-filling-nodejs.git
  3. Go to Settings ⚙ > Export and Import > Restore from zip using the dialogflow-agent.zip in this directory.
  4. cd to the functions directory
  5. Run npm install.
  6. Install the Firebase CLI by running npm install -g firebase-tools
  7. Login with your Google account, firebase login
  8. Add your project to the sample with firebase use <project ID>
  • In Dialogflow console under Settings ⚙ > General tab > copy Project ID.
  1. Run firebase deploy --only functions:dialogflowFulfillment
  2. Back in Dialogflow Console > Fulfullment > Enable Webhook.
  3. Paste the URL from the Firebase Console’s events column into the URL field > Save.

Related Samples

Name Language
Fulfillment & Regex Validation Node.js
Weather: Fulfillment & WWO API Node.js
Bike Shop: Fulfillment & Google Calendar API Node.js
Temperature Trivia: Fulfillment & Actions on Google Node.js
Fulfillment & Actions on Google Node.js
Fulfillment & Firestore Database Node.js
Multi-language/locale Node.js
Basic Slot Filling Node.js
Alexa Importer Node.js

For Fulfillment Webhook JSON Requests & Responses.

References & Issues

Make Contributions

Please read and follow the steps in the CONTRIBUTING.md

License

See LICENSE.md

Terms

Your use of this sample is subject to, and by using or downloading the sample files you agree to comply with, the Google APIs Terms of Service and Dialogflow's Terms of Use and Privacy Policy.

fulfillment-slot-filling-nodejs's People

Contributors

taycaldwell avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

fulfillment-slot-filling-nodejs's Issues

no firebase function url created

When I deploy the firebase functions in the project folder, I get a firebase project url, but not a firebase function url to use with a webhook. If I go to the functions tab on the project page it shows that there aren't any applications linked yet.

Filling parameter values through fulfilment

According, to the sample provided in this repository. It allows you to check the value of the parameter through agent.parameters in the slot filling process. But there is no any example of the scenario where we would like to provide those values through fulfillment.

Say, for instance, I have three required slots and based on the conversation/situation, I might want to set one or more slots value on the backend. I'm not able to see the possible way for this. A working example is in Alexa Skills, where Dialog model allows you to update slots value in the backend.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.