chaining conversation llm node in prompt flow

Denis Oblin 20 Reputation points
2025-02-24T10:23:39.63+00:00

In Azure prompt flow I want to chain a conversation LLM with chat history and then when the conversation is over ("goodbye") activate the llm of the next node which analyses the conversation of the previous node: how do I set up this flow?
I tried many things but any trigger bitween the conversation node and the analysis node interrupt the chat at the first question

Azure AI services
Azure AI services
A group of Azure services, SDKs, and APIs designed to make apps more intelligent, engaging, and discoverable.
3,598 questions
0 comments No comments
{count} votes

Accepted answer
  1. Amira Bedhiafi 33,071 Reputation points Volunteer Moderator
    2025-02-24T13:04:46.3233333+00:00

    You need to follow these steps :

    1. Create the Conversation LLM Node:
      • Add a node for the conversation LLM.
      • Configure the node to maintain chat history where you can pass the conversation history as part of the input to the LLM.
      • Set up the node to handle user inputs and generate responses until a specific termination phrase (for example "goodbye") is detected.
    2. Detect Termination Phrase: Implement logic to detect the termination phrase ("goodbye") in the user's input, you can use a conditional check within the conversation node or by adding a separate node to handle this logic.
    3. Trigger the Analysis LLM Node: Once the termination phrase is detected, trigger the next node which contains the analysis LLM and pass the entire conversation history to the analysis LLM node.
    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

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