admin管理员组文章数量:1355694
Given the following API implementation:
const session = client.projectLocationAgentSessionPath(
this.projectId,
this.location,
this.agentId,
this.requestData.sessionId
);
const request = {
session,
queryInput: {
text: {
text: this.requestData.query,
},
languageCode: this.requestData.languageCode || 'en-US',
},
queryParams: {
parameters: {
fields: {
uid: { stringValue: this.requestData.uid },
conversationId: { stringValue: this.requestData.sessionId },
token: { stringValue: '1234567890' }
}
}
}
};
return client.serverStreamingDetectIntent(request);
I would like to know how to access the parameters that have been passed to the Playbook. Here is the plabook screnshot:
It's not clear how to access the parameters in the Playbooks instructions. If I try to use uid - $session.uid it doesn't work, the values returned are random. For example, I'm trying to pass the uid to a Tool which needs it in order to save the profile information it collects to a specific user based on their UID. E.g:
- If the user says save the profile, then send the profile information and uid using ${TOOL:Save Profile}
The profile info is captured during the conversation and it is successfully sent to the TOOL however, the UID is completely fictional and random. It doesn't use the input parameter value.
本文标签: dialogflow cxPassing parameters from API to Playbook (Routine)Stack Overflow
版权声明:本文标题:dialogflow cx - Passing parameters from API to Playbook (Routine) - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744003907a2574353.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论