Hi, is it possible to trigger a flow from a generate_bot_message?
For example, if generate_bot_message is similar to "Thanks, let me create a recommendation for you.":
define bot create recommendation
"Thanks, let me create a recommendation for you."
# Flow for generating recommendation
define flow
bot create recommendation
$summarization = execute summarize_preferences
$answer = execute qa_chain(user_message=$summarization)
bot $answer
So far I can only get this flow to work if bot create recommendation is also triggered from another defined flow rather than from generate_bot_message.
For more context, I'm trying to get the following to work:
Give LLM a system prompt telling it to have a natural conversation, ask a list of questions, and gather responses. Avoid putting each of these in a rigid/linear flow so the conversation is more natural.
Tell the LLM to respond with a specific cue message when it recognizes that it has collected all necessary information.
Use bot cue message from generate_bot_message to create summarization of user preferences, then pass this summarization to RAG system to get relevant context and provide answer
Hi @austinmw! No, this is not possible. I've marked this as a feature request. But this is an interesting angle, to interpret the LLM messages after it was generated.
Hi, is it possible to trigger a flow from a
generate_bot_message
?For example, if
generate_bot_message
is similar to "Thanks, let me create a recommendation for you.":So far I can only get this flow to work if
bot create recommendation
is also triggered from another defined flow rather than fromgenerate_bot_message
.For more context, I'm trying to get the following to work:
generate_bot_message
to create summarization of user preferences, then pass this summarization to RAG system to get relevant context and provide answer