Converts a Dialogflow agent's dialog taxonomy to an easily-viewable Excel spreadsheet. Works by using Google's Dialogflow CX Python client to scrape an agent's pages in a particular flow.
- Download a credentials file from the Google Cloud Platform console.
- Run
export GOOGLE_APPLICATION_CREDENTIALS="<insert credentials here>"
in your terminal - Set the
AGENT
environment variable to the agent whose routes you'd like to map. The content should be in the formatprojects/.../locations/.../agents/...
- Set the
FLOW
environment variable to the specific flow whose pages you'd like to scrape the routes from. The content should be in the format{}/flows/...
Enables mass editing of a Dialogflow agent's dialog via an Excel spreadsheet. Works by using a route map (see map_routes.py
) to parse changes to an agent's fulfillments; then uploads the generated "variant" as a new Dialogflow agent.
- Run
map_routes.py
on an existing agent. - Edit route fulfillments as you'd like. Keep in mind that only fulfillments in the edited route map will be uploaded to the generated variant agent.
- Set the
ROUTE_MAP
environment variable to the file path of the edited route map. - Set the
VARIANT_NAME
environment variable to the name of the new bot.
Prioritizes a given intent by setting its internal priority value to an inputted integer. See intent priorities.
- Set the
INTENT
environment variable to the intent whose priority you'd like to change. The intent should be in the formatprojects/.../locations/.../agents.../intents/...
- Set the
NEW_PRIORITY
environment variable to the integer value you'd like.
Syncs training phrases for matching intents between two agents. Works by examining all common intents between a reference agent and a target agent, and then updating the target agent's training phrases with the reference agent's.
- Set the
REFERENCE
environment variable to the agent whose training phrases you'd like to copy over. The content should be in the formatprojects/.../locations/.../agents/...
- Set the
AGENT
environment variable to the agent whose training phrases you'd like to update. The content should be in the formatprojects/.../locations/.../agents/...
Paraphrases input text using Google Research's PEGASUS model.
- Set
sentence
variable to an input sentence you'd like.