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

Chat-history for Dialog flow cx

Firstly, I am using generator to send entire chat history as a parameter and using it to send chat history to someone using cloud function, but the issue is max cx response length is 4000 characters if I am right. I even increased the tokens to max limit.  So, if the conversation is longer the parameter is showing only latest 4000 characters, and I want to get all the content which seems impossible in this case.

As I'm using webhook, I'm trying to use conversation history using its id. I observed that session id and conversation id are same. So, I'm using v3beta to get conversation history of the current chat, but the issue is, cloud function is not recognizing the package "google-cloud-dialogflow-cx-v3beta1" in requirements text. what can be done? 

Error:
```
Build failed with status: FAILURE and message: ERROR: Could not find a version that satisfies the requirement google-cloud-dialogflow-cx-v3beta1 (from versions: none) ERROR: No matching distribution found for google-cloud-dialogflow-cx-v3beta1. For more details see the logs at https://console.cloud.google.com/cloud-build/builds;region
``` 
is there any other possible way to get chat history by using cloud function?

 

Thank you.


0 3 1,024
3 REPLIES 3