"Problem with passing variables from chat input." #7845
Replies: 2 comments
-
|
Hello @ahomonicky! I'm Dosu, your friendly bot here to help you solve bugs, answer questions, and guide you as a contributor. I'm ready to assist you while you wait for a human maintainer. Let's tackle this together! To ensure that the outputs = await run_single_component(
ChatInput, inputs={"sender": "User", "sender_name": "Aleš Homonický"}, run_input="Test"
)Make sure that the If the issue persists, verify that the connections between nodes are correctly established and that the To continue talking to Dosu, mention @dosu. Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Bug Report | Other |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.

Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I would like to ask for some advice.
I am a new user of Langflow and I am building a bot for a company knowledge base.
The server is running on Ubuntu, and I wrote a Flask API to receive messages from Slack.
It took me some time to figure it out, but now I am successfully sending sender_name and session_id into Langflow (please see the attached screenshot of the JSON output from the log and the variables in the chat input).
These variables are mapped in the Prompt under sender_name, and session_id is also correctly stored in the Message Store.
Unfortunately, for some reason, the chat input variables are not passed further down the flow.
I am also attaching a screenshot of the flow itself.
It is probably just a small mistake, but I can't find it.
Could I kindly ask for your advice? Thank you very much!
Part of scrip






Log from incoming message
Pisture of input chat settings
Connecting to prompt
Prompt variable
"But unfortunately, the variable is not passed into the prompt at all."
CURL log test

Somewhere along the flow, the value of sender_name gets replaced with "AI", as can be seen from the log.
But I have absolutely no idea where this happens, and I don't know how to fix it.
When I tried adding a Text Input component before the Chat Input to test it, it even printed {question} multiple times instead of {sender_name}.
I'm attaching the test flow again.
Prompt settings

Output from prompt

I have been working on this for several days now and still haven't figured it out.
Hopefully someone knows what might be causing it.
Thank you very much in advance for any help.
The Langflow version I am using is 1.3.4 (latest).
Thanks a lot
Aleš
Beta Was this translation helpful? Give feedback.
All reactions