Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Passing parameters from API to Playbook (Routine)

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.

ajbarry99_0-1743106158628.png

 

This is not working, how can I pass custom variables into the Playbook from an API integration?

 

 

 

 

 

0 1 102
1 REPLY 1