Skip to content

[Due for payment 2026-05-15] [Custom Workflow Agents] Add Create Agent flow #89310

@puneetlath

Description

@puneetlath

Part of the Custom workflow agents project

Main issue: https://github.com/Expensify/Expensify/issues/614622
Doc section: https://expensify.enterprise.slack.com/docs/T03SC9DTT/F0AKV1FPD41

Feature Description

In #89284 we will have added the agents page. Now let's add support for creating agents. To do that you will need to:

  • Add to that section a New agent button that:
    • Shows a form in the RHP to:
      • Set the profile image (let's just hardcode one avatar for now, we can add selection later)
      • Set the display name (set the default as "Bob's Agent" if the creator is "Bob")
      • Set the the initial prompt
      • Calls a new API command CreateAgent when saved
      • Optimistically creates the agent so that it shows in the list immediately
Image

Manual Test Steps

Since the back-end is not yet returning agents, this can be tested while offline.

  1. Click the New agent button
  2. Verify you see the modal with the default avatar and the ability to set name and prompt
  3. Verify name is defaulted to "bob's agent" assuming the creating user is named "bob"
  4. Verify name is editable
  5. Verify default prompt is present
  6. Verify prompt is editable
  7. Hit save
  8. Verify CreateAgent API is called in Network tab
  9. Verify that the new agent is optimistically shown on the Agents page with the provided details

Automated Tests

Same as manual

Issue OwnerCurrent Issue Owner: @NicolasBonet

Metadata

Metadata

Labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions