Most AI app demos stop at a chat box. That is fine while the AI only talks. Once it can book a table, pay a deposit, send a WhatsApp message or answer a phone call for a business, people need to see what it is about to do and stop it in time. Over the last weeks I built four agent-style apps in FlutterFlow: a personal agent, a workflow automation studio, a WhatsApp chatbot inbox and a voice…
Designing a user interface for AI agent applications necessitates six crucial screens before integrating the model. These screens, observed across various agent-style apps developed using FlutterFlow, are vital for user understanding, interaction, and oversight.
Firstly, the plan screen outlines the steps the agent intends to take. For instance, "I'll search three restaurants, check Saturday at 8, hold the best table, then ask you before paying the deposit." This planning phase alerts users to potential errors early, such as an incorrect date, and clarifies the agent's capabilities without needing a help page.
In FlutterFlow, a custom action named 'planRun' generates a list of steps, which a custom widget then presents step-by-step, irrespective of the data source. This allows for design with sample data before connecting the model.
Secondly, the live run screen provides real-time updates as the agent operates. It displays the current action, the information gathered, and the remaining tasks. The screen handles various states including running, where the action is ongoing; needs you, indicating the agent is awaiting an answer or approval; failed, specifying the problematic step, the reason, and options for retrying or changing; and done, indicating the outcome and any changes made.
States like "needs you" and "failed" are particularly memorable and signal to users that the product is safe to use.
Thirdly, the approval gate screen mandates user confirmation for actions that involve spending or sending. Only one action is allowed to execute such operations, ensuring it requires deliberate intent. Users approve by pulling a dot down or holding a button, with the amount and recipient displayed clearly. This deliberate approach avoids accidental approvals and enhances user trust.
Fourthly, the handoff to a person screen addresses situations where the agent cannot handle a case independently. For example, in a WhatsApp chatbot inbox, a chat can be forwarded to a human agent with a single slide, and the agent can suggest a reply while the human types. Similarly, in a voice receptionist, the operator can monitor live calls and take over. A consistent color coding system distinguishes between bot and human conversations, aiding immediate identification.
Fifthly, the trace screen archives every interaction, recording inputs, outputs, timings, costs, and approvals. Users access this history when they encounter unexpected results, while administrators utilize it for reviewing failed steps, flagged communications, or subpar calls. The admin dashboard for AI products includes this feature, enabling tracking of mistakes to foster continuous improvement.
Lastly, the memory and limits screen allows users to manage the agent's stored information and spending constraints. Users can view and delete stored data, set personal limits for spending per run, per day, or per site, and access a log of connected accounts and their approval history. This transparency builds user confidence by illustrating the boundaries of the agent's authority.
In addition, a bonus feature suggests displaying the cost associated with AI calls, including a user credit meter and the model's daily costs. This transparency prevents unexpected expenses and aids in pricing plans effectively.
The UI is architectured to remain separate from the model, facilitating ease of development and provider switching. Each AI call is managed through named custom actions like askAgent, planRun, startRun, approveStep, and transcribeVoice, each returning straightforward data. The interface, built with custom widgets, can be tested with sample data prior to model integration, allowing switching providers by altering a single location.
All APIs, including the model, are called from a server backend, ensuring secure API key management. These four FlutterFlow templates for personal agents, workflow automation, chatbot building, and voice receptionist incorporate these principles, available on the FlutterFlow AI app templates page.
Rewritten by urgent.news; may contain errors — check the original.