We seem to be getting random “Internal Server Error” calls in Playbooks. The playbook is very simple and calls a tool to get answers from a custom RAG solutiion (called via a cloud run function). The tool seems to start running but the Playbook instantly errors with the “Internal Server Error”.
What can I do to help debug this? There is very little in the way of debugging information from the Playbook itself. Anything we should check for?
This issue might be related to response timeout in Dialogflow CX. Dialogflow expects a webhook response within your configured timeout (up to 30 seconds). If the Cloud Run Function experiences a cold start, it may cause a delay that makes the dialogflow webhook to timeout.
You can try setting a minimum number of instances in Cloud Run or increasing the webhook timeout in the Dialogflow CX console.
It is also best to check your Cloud Logging and Cloud Run Logs for more details about the error. If this doesn’t resolve the issue, it’s best to contact Google Cloud Support with the detailed information.