How to use custom question answering using a decision tree approach?

Biplab 0 Reputation points
2025-04-25T05:03:44.52+00:00

We are building a speech enabled application and using custom question/answering to fetch the questions. This currently works in a sequential manner and I am able to fetch all questions from the QnA knowledge base.

However, the use case I am working on requires to ask relevant questions with respect to how the user is answering the previous one - something like a decision tree.

What relevant Azure offering should be used here? Will Azure AI Bot service help or I need to use CLU (Conversational Language Understanding) or is it going be Orchestration Workflow? The main problem is how to use a decision tree concept with question answering for a guided conversation.

Azure AI Language
Azure AI Language
An Azure service that provides natural language capabilities including sentiment analysis, entity extraction, and automated question answering.
492 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Pavankumar Purilla 7,090 Reputation points Microsoft External Staff Moderator
    2025-04-25T10:57:39.26+00:00

    Hi Biplab,

    To implement a decision tree approach for guided conversations using Custom Question Answering in a speech-enabled application, you can leverage a combination of Azure services. Here's how each relevant service contributes to the solution:

    Custom Question Answering allows you to build a knowledge base from your own data such as FAQs, manuals, or structured documents. This service is used to fetch questions and answers relevant to your domain.

    Conversational Language Understanding (CLU) plays a key role in understanding the user's intent and extracting meaningful entities from their responses. This contextual understanding helps determine the appropriate next question in a guided flow.

    Orchestration Workflow lets you integrate different language components like Custom Question Answering and CLU into a single conversational experience. It intelligently routes user queries to the correct component based on intent and context.

    To build your decision-tree-based guided conversation, follow these steps:

    Step 1: Set Up Custom Question Answering – Create a QnA project in Azure Language Studio with your predefined questions and answers.

    Step 2: Define Decision Tree Logic – In your application, implement logic that determines the next question based on user responses. This can be done using simple conditional logic or more advanced data structures like state machines or JSON-based flows.

    Step 3: Use CLU for Understanding – Apply CLU to interpret user inputs more deeply, enabling your system to extract entities or intent that influence the decision tree's branching.

    Step 4: Orchestrate with Workflow – Set up an Orchestration Project to seamlessly route between QnA and CLU, ensuring the right service is triggered at the right time.

    By combining these services, you can design a conversational experience that dynamically adapts based on user input—much like a decision tree—while maintaining flexibility, contextual understanding, and voice interactivity using Azure Speech Services.

    I hope this information helps. Thank you!

    0 comments No comments

Your answer