0

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:

enter image description here

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.

askedMar 29 at 20:53
Ajq's user avatar

0

Know someone who can answer? Share a link to thisquestion viaemail,Twitter, orFacebook.

Your Answer

Sign up orlog in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

By clicking “Post Your Answer”, you agree to ourterms of service and acknowledge you have read ourprivacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.