如何在 Web 控制台之外使用 Dialogflow
How to use Dialogflow outside of the Web Console
是否可以在 Dialogflow Web 控制台之外创建 Dialogflow 代理?
是否有一些我可以调用的 Web API 可以创建 'Intent'?
然后也许其他一些 API 可以将 'Event' 添加到那个 'Intent'?
然后可能会有更多 API 添加到 'Training phrase' / 'Action' 或 'Parameter'?
我看过;我可以单击 'Agent' 的 'Settings' 按钮,然后有一个选项卡:"Export and Import",在该选项卡下是按钮:'Export as ZIP'、'Restore from ZIP' 和 'Import from ZIP'.
我能以某种方式使用这些功能来编写我自己的 ZIP 文件吗?然后只需使用以下命令导入它:'Import from ZIP'?
如有任何帮助或其他建议,我们将不胜感激。
您可能正在查找 https://cloud.google.com/dialogflow/docs/manage-intents 文档页面,其中包含多种语言的示例。
样本 JSON 看起来像:
{
"displayName": "ListRooms",
"priority": 500000,
"webhookState": "WEBHOOK_STATE_UNSPECIFIED",
"trainingPhrases": [
{
"type": "EXAMPLE",
"parts": [
{
"text": "What rooms are available at 10am today?"
}
]
}
],
"action": "listRooms",
"messages": [
{
"text": {
"text": [
"Here are the available rooms:"
]
}
}
]
}
是否可以在 Dialogflow Web 控制台之外创建 Dialogflow 代理?
是否有一些我可以调用的 Web API 可以创建 'Intent'? 然后也许其他一些 API 可以将 'Event' 添加到那个 'Intent'? 然后可能会有更多 API 添加到 'Training phrase' / 'Action' 或 'Parameter'?
我看过;我可以单击 'Agent' 的 'Settings' 按钮,然后有一个选项卡:"Export and Import",在该选项卡下是按钮:'Export as ZIP'、'Restore from ZIP' 和 'Import from ZIP'.
我能以某种方式使用这些功能来编写我自己的 ZIP 文件吗?然后只需使用以下命令导入它:'Import from ZIP'?
如有任何帮助或其他建议,我们将不胜感激。
您可能正在查找 https://cloud.google.com/dialogflow/docs/manage-intents 文档页面,其中包含多种语言的示例。
样本 JSON 看起来像:
{
"displayName": "ListRooms",
"priority": 500000,
"webhookState": "WEBHOOK_STATE_UNSPECIFIED",
"trainingPhrases": [
{
"type": "EXAMPLE",
"parts": [
{
"text": "What rooms are available at 10am today?"
}
]
}
],
"action": "listRooms",
"messages": [
{
"text": {
"text": [
"Here are the available rooms:"
]
}
}
]
}