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.
You have to have:
from google.cloud import dialogflowcx_v3beta1 as dialogflow
pip install google-cloud-dialogflow-cx
How do you manage to store the entire history of a conversation in DF CX?
I used generator, basically generator has capability to read conversation history using $conversation special block. you can make it respond with entire history.
By the way, you can get the entire chat history with v3 beta and format the history in your own way. Package google.cloud.dialogflow.cx.v3beta1 | Dialogflow CX | Google Cloud
User | Count |
---|---|
2 | |
2 | |
1 | |
1 | |
1 |