watsonx Assistant

watsonx Assistant

Conversational AI for fast and friendly customer care

 View Only
Expand all | Collapse all

How to get confidence score of the current intent in action

  • 1.  How to get confidence score of the current intent in action

    Posted Sun June 22, 2025 07:35 PM

    Hi All,

    I'm working in a migration of Watson Assistant (Dialog) to WatsonX Assistant/Orchestrate Assistant Builder (Actions), and I cant access thru condition the value of intents[0].confidence. I can create a context variable and set intents to it, but my problem is before that, in condition.

    Any clue? 

    thanks in advance



    ------------------------------
    Sergio Gama
    Sr Data & AI Architect
    TD Synnex
    São Paulo
    +55 11 94581-7571
    ------------------------------


  • 2.  RE: How to get confidence score of the current intent in action

    Posted 15 days ago

    You can't use intents[0].confidence directly in an Action condition. In the first step after user input, grab it from $request.intents[0].confidence into a variable (e.g. $confidence), then use that variable in your conditions. $request is only available right after the input, so store it early if you'll need it later.

    By the way, if you're into Wordfeud, you might find this site helpful: wordfeud guide



    ------------------------------
    Santosh saintjoseph1226
    ------------------------------