Flowise icon indicating copy to clipboard operation
Flowise copied to clipboard

V2 Agentflow - Admin Test vs flowise-ui inconsistency when using forms

Open mageaustralia opened this issue 1 year ago • 0 comments

Describe the bug

In Admin Test Chat - 1st Request

{"chatId":"9a0ee8d7-28fa-469f-8874-dbd6f38537df","form":{"name":"Matt","email":"[email protected]","phone":"0420000000","country":"Australia","details":"I have a bluetooth issue","serial":"BEC2500504009"},"streaming":true}

Follow up (2nd request):

{"question":"Submit a ticket","chatId":"9a0ee8d7-28fa-469f-8874-dbd6f38537df","streaming":true}

In Frontend - 1st Request

{"chatId":"818b7eb6-4022-40c3-8e79-270478b45ea8","form":{"name":"Matt","email":"[email protected]","phone":"0420000000","country":"Australia","details":"I have a bluetooth issue","serial":"BEC5200405009"},"overrideConfig":{},"streaming":true}

Follow up - 2nd request

{"chatId":"818b7eb6-4022-40c3-8e79-270478b45ea8","form":{},"overrideConfig":{},"streaming":true}

To Reproduce

  1. Go to AgentFlows V2 and Create New
  2. Add a Start node with a Form ie: "Name"
  3. then add an LLM node with simple instructions like "Just say hi {name} and then do whatever to keep a friendly chat going."
  4. In Admin, this will work. The first request sends the form details and follow up requests send "question" payloads in the POST requests to /api/v1/internal-prediction/
  5. Share the chat and go to the shared URL and try the same, after you complete the form, it will say: Hi " and a small chitchat - If you try and do follow up questions, or anything it will either repeat similar to what it said the first time or eventually:

Error: predictionsServices.buildChatflow - Error in LLM node: 400 {"type":"error","error":{"type":"invalid_request_error","message":"messages.2: all messages must have non-empty content except for the optional final assistant message"},"request_id":"req_011CSTpMFndboTfTWioevB7M"}

because there's no "question" option in the POST requests to /api/v1/internal-prediction/

Expected behavior

Expect flowise-ui and admin ui to be aligned and work the same but they do not.

Screenshots

Image

Flow

Test Agents.json

Use Method

npx flowise start

Flowise Version

Flowise: 3.0.4 - Flowise-UI: 3.0.5 (current/latest)

Operating System

Linux

Browser

Chrome

Additional context

No response

mageaustralia avatar Aug 25 '25 04:08 mageaustralia