Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save anchetaWern/d98177266aaba98e982e972b267b3b35 to your computer and use it in GitHub Desktop.
Save anchetaWern/d98177266aaba98e982e972b267b3b35 to your computer and use it in GitHub Desktop.
Pokedex Bot: sample fulfillment server request body from Dialogflow
{
"responseId":"xxxx-xxx-xxx-xx-xxxxxx-xxxxx",
"queryResult":{
"queryText":"What is super effective against ice type?",
"parameters":{
"pokemon_types":"ice",
"type_effectiveness":"double_damage_from"
},
"allRequiredParamsPresent":true,
"fulfillmentMessages":[
{
"text":{
"text":[
""
]
}
}
],
"outputContexts":[
{
"name":"projects/newagent-xxxxx/agent/sessions/xxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx/contexts/type_effectiveness",
"lifespanCount":5,
"parameters":{
"pokemon_types":"ice",
"pokemon_types.original":"ice",
"type_effectiveness":"double_damage_from",
"type_effectiveness.original":"super effective against"
}
}
],
"intent":{
"name":"projects/newagent-xxxxx/agent/intents/xxxxxx-xxxx-xxxx-xxxx-xxxxxxxx",
"displayName":"get_type_effectiveness"
},
"intentDetectionConfidence":1,
"languageCode":"en"
},
"originalDetectIntentRequest":{
"payload":{
}
},
"session":"projects/newagent-xxxxx/agent/sessions/xxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment