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?