You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There are a few options for integrating Conversation with external services, for example indicating a request to a service is required in the output and feeding the results back in via the context. That seems overly complex for the rugby bot though so if you did want to use the dialog facility in the Conversation service, I think I'd probably do something like this (using fixture as an example)...
Add a dialog node with a #next_fixture intent condition
Instead of a simple text output, use the advanced output editor for something like this...
{
"output": {
"text": "%s play %s on %s %s.",
"request": "fixture"
}
}
Detect that a fixture request is required and handle the external service the same way as now, and formatting the output text with the result of the external service
Results might need a slight tweak to handle the case when the game hasn't been played. Perhaps something like...
{
"output": {
"text": {
"available": "The score between %s and %s was %d-%d.",
"unavailable": "We haven't played that game yet"
},
"request": "result"
}
}
Anyway, there's obviously no reason to use dialog but I think the above should work for any future bots where there's a simple interaction.
The text was updated successfully, but these errors were encountered:
Just a slightly more detailed response to https://twitter.com/bobbyshaw/status/778280943635329024
There are a few options for integrating Conversation with external services, for example indicating a request to a service is required in the output and feeding the results back in via the context. That seems overly complex for the rugby bot though so if you did want to use the dialog facility in the Conversation service, I think I'd probably do something like this (using fixture as an example)...
#next_fixture
intent conditionResults might need a slight tweak to handle the case when the game hasn't been played. Perhaps something like...
Anyway, there's obviously no reason to use dialog but I think the above should work for any future bots where there's a simple interaction.
The text was updated successfully, but these errors were encountered: