I have 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);
Here is my playbook.
This is not working, how can I pass custom variables into the Playbook from an API integration?
Hi @ajbarry99,
Welcome to the Google Cloud Community!
To integrate custom variables into your Playbook from an API, make sure the variables are correctly included in your API request and appropriately handled within the Playbook.
Here are key considerations that might help you to resolve the issue:
For more information about Playbook best practices, you may read this documentation.
Was this helpful? If so, please accept this answer as “Solution”. If you need additional assistance, reply here within 2 business days and I’ll be happy to help.
User | Count |
---|---|
2 | |
1 | |
1 | |
1 | |
1 |