Flowise icon indicating copy to clipboard operation
Flowise copied to clipboard

[BUG] [Agent v2] sending image via API creates seperate conversation, even with the same session ID

Open alexsstockton opened this issue 1 year ago • 4 comments

Describe the bug Sending an API call to a flowise v2 agent with an image is sucessful, but it creates an entirely new conversation with the same session ID. This means the agent can sucessfully answer one question about the image, but it cannot answer follow up questions, as a new conversation appears to start with every image sent.

To Reproduce Steps to reproduce the behavior:

  1. Create an Agent v2 flow and enable image upload
  2. Send an API request to the flow using an image url
  3. Send another request
  4. Click the view messages button in the settings menu of flowise, notice that for every image sent, a new conversation is started with the same session id.

Expected behavior it's expected that images do not create entirely new conversations for the same session id.

Screenshots

https://github.com/user-attachments/assets/22daef70-5e31-49c8-8c6d-ee0b4bcd69a3

Flow If applicable, add exported flow in order to help replicating the problem.

Setup

  • Flowise Version [3.0.1]
  • OS: [Windows]
  • Browser [Chrome]

alexsstockton avatar Jun 01 '25 14:06 alexsstockton

how does your API request body looks like?

HenryHengZJ avatar Jun 02 '25 18:06 HenryHengZJ

@HenryHengZJ

{ "question": "User's actual text question/prompt here", "overrideConfig": { "sessionId": "user_session_id", "vars": { "current_user_tempid": "User_temp_id", "todays_date": "2025-05-31", "daily_calorie_target": "0" }, "uploads": [ { "data": "ACTUAL_IMAGE_URL_HERE", "type": "url", "name": "image_filename.jpg", "mime": "image/jpeg" } ] } }

alexsstockton avatar Jun 02 '25 21:06 alexsstockton

Hi @HenryHengZJ , any updates on this one? Appreciate you!

alexsstockton avatar Jun 16 '25 13:06 alexsstockton

cant replicate, its working:

1.) send a request:

Image

2.)

Image

3.) send another request:

Image

4.)

Image

HenryHengZJ avatar Jun 17 '25 21:06 HenryHengZJ