langflow-ai / langflow

Langflow is a low-code app builder for RAG and multi-agent AI applications. It’s Python-based and agnostic to any model, API, or database.
http://www.langflow.org
MIT License
36.22k stars 4.27k forks source link

Have an easy way to let the agent initiates the conversation #4468

Open sangdth opened 3 weeks ago

sangdth commented 3 weeks ago

Feature Request

E.g. when we open that Chat Widget, we want the Agent starts greeting like "Hello, I'm Agent 007 from ABC Company, how can we help you today?" so the customer can continue.

Motivation

Our customers are elders, so we would like to have the bot initiate some guides like, "Hi, I'm Agent 007, I can help you find answers in this and that..." and something similar. I tried to find a way to work around but things get too complicated when we have to use the embedded widget on a WordPress frontend.

I tried to ask on Reddit and there are some suggestions like this:

One is to directly instruct your model to handle this when the chat memory is empty. 
Alternatively, you could add a length-based conditional router to optimize token usage.
While Langflow has a conditional router, it does not have directly a length-based one,
so you may need to customize it for your needs. 

Your Contribution

I still can not find an easy way to implement or suggest, but I'm open to give a hand.

aisprint commented 1 week ago

I also agree with this Request. Among the several chatbots I use, there is a function that guides chats based on pre-defined scenarios without using AI. You can create a Flow by simply defining questions and preparing answer choices, and users proceed with the conversation according to this flow. I think it would be beneficial if you could switch to generative AI at some point or return to the scenario as needed.