Screenshot 2025-11-19 153028.png
I am integrating a Custom Conversational Language Understanding (CLU) model with my Azure Health Bot scenario. The bot is supposed to capture the user’s query, send it to CLU, store the response in clu_result, and then route the flow using a Switch based on clu_result.result.prediction.topIntent.
However, the CLU call is consistently failing, and the bot trace shows two critical errors:
- “Call for LU model failed. AxiosError: Request failed with status code 404.”
“clu_result is not defined.”
Because the CLU call fails with a 404 error, the clu_result variable is never created, so the Switch step also fails.
I have already confirmed the following settings in the Language Understanding action:
Endpoint matches the CLU resource (from Azure portal → Keys & Endpoint).
Subscription Key is correct.
Project Name is exactly “healthbot”.
Deployment Name is exactly “health_bot_deployment”.
API Version is set to 2023-04-01, which matches the CLU documentation.
Input utterance is set to the prompt variable “freeText”.
Despite these being correct, the bot still cannot reach the CLU model and continues to return a 404 response, preventing the scenario from functioning.
I need assistance identifying why the bot cannot reach the CLU endpoint and resolving the 404 + undefined variable issue so that the CLU prediction can be retrieved successfully.I am integrating a Custom Conversational Language Understanding (CLU) model with my Azure Health Bot scenario. The bot is supposed to capture the user’s query, send it to CLU, store the response in clu_result, and then route the flow using a Switch based on clu_result.result.prediction.topIntent.
However, the CLU call is consistently failing, and the bot trace shows two critical errors:
“Call for LU model failed. AxiosError: Request failed with status code 404.”
“clu_result is not defined.”
Because the CLU call fails with a 404 error, the clu_result variable is never created, so the Switch step also fails.
I have already confirmed the following settings in the Language Understanding action:
Endpoint matches the CLU resource (from Azure portal → Keys & Endpoint).
Subscription Key is correct.
Project Name is exactly “healthbot”.
Deployment Name is exactly “health_bot_deployment”.
API Version is set to 2023-04-01, which matches the CLU documentation.
Input utterance is set to the prompt variable “freeText”.
Despite these being correct, the bot still cannot reach the CLU model and continues to return a 404 response, preventing the scenario from functioning.
I need assistance identifying why the bot cannot reach the CLU endpoint and resolving the 404 + undefined variable issue so that the CLU prediction can be retrieved successfully.