Share via

CLU Runtime Works in Postman but Bot Flow Fails with "clu_result is not defined

Suma Nalluri 20 Reputation points
2025-11-18T19:46:30.3633333+00:00

Hi,

I’m facing an issue while integrating Azure Conversational Language Understanding (CLU) with my bot and would appreciate some guidance.

What Works

• Calling the CLU runtime endpoint (analyze-conversations) from Postman works correctly. • Response returns 200 OK with valid intent predictions.

Issue

• Inside my bot flow, the Switch step fails with:

DialogContextError: clu_result is not defined

Important Observations

• No authentication errors • No 404 / 401 from CLU • CLU project is trained and deployment status = Succeeded • Same endpoint and key used in Postman and bot

Bot Configuration

• CLU node variable name: clu_result • Input utterance: freeText • Switch expression:

clu_result.result.query.prediction.topIntent

Problem Behavior

• Bot executes CLU node but Switch step behaves as if clu_result was never created. • Since Postman returns valid predictions, CLU runtime itself appears healthy.

Azure Health Data Services
Azure Health Data Services

An Azure offering that provides a suite of purpose-built technologies for protected health information in the cloud.


1 answer

Sort by: Most helpful
  1. Suma Nalluri 20 Reputation points
    2025-12-03T21:12:39.62+00:00

    Hi, I’m still facing the same 404 error, and I also wanted to mention another issue I’m running into: the bot shows clu_result is not defined even though the CLU call and variables are configured.

    Here’s everything I’ve tried so far:

    I verified all my CLU configuration settings inside the bot.

    I changed the CLU endpoint URL multiple times and tested different URL formats.

    I even used the exact Prediction URL from Language Studio, but it still returns a 404 every time.

    I double-checked the project name, deployment name, region, and both keys.

    I deleted and re-added the variables to make sure there were no typos.

    Even after all of that, the bot continues to show the same 404 error, and the expression clu_result is not defined also appears, even though it is already referenced in the CLU action step.

    I’m not sure what else I can try at this point. Since I’ve tested multiple endpoints, confirmed the configuration, and revalidated all variables, it seems like something else is causing both the 404 and the variable definition issue.

    Could you please let me know if there are any additional troubleshooting steps, hidden configuration requirements, or known backend issues that could cause this behavior? Any guidance would be greatly appreciated.

    Thank you.

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.