Skip to content
This repository was archived by the owner on Jan 20, 2026. It is now read-only.

actions-on-google/dialogflow-session-entities-plugin-nodejs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dialogflow Session Entities for Actions on Google plugin

This plugin makes it easier to use Dialogflow Session Entities in the Actions on Google library.

This plugin supports only Actions built with Dialogflow.

NPM Version

Setup Instructions

Install the plugin with npm install actions-on-google-dialogflow-session-entities-plugin.

Usage

This plugin adds a new method to the conv object to let you provide a single or set of entities along with their synonyms.

You can use CRUD operations add, get, set, and clear to modify the array of session entities you will be using. Call the send method to add these session entities to the conversation response.

Typescript developers can import the SessionEntity interface for type-safety.

const { dialogflow } = require('actions-on-google')
const { sessionEntitiesHelper } = require('actions-on-google-dialogflow-session-entities-plugin')

const app = dialogflow()
    .use(sessionEntitiesHelper())

app.intent('Default Welcome Intent', async (conv) => {
    // Get session entities through some method
    conv.ask('How can I help?')
    const entities = await asyncDatabaseCall()
    conv.sessionEntities.add(...entities)
    conv.sessionEntities.send()
})

References & Issues

Make Contributions

Please read and follow the steps in the CONTRIBUTING.md.

License

See LICENSE.

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.

About

No description, website, or topics provided.

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors