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
Manual Test Steps
Since the back-end is not yet returning agents, this can be tested while offline.
- Click the New agent button
- Verify you see the modal with the default avatar and the ability to set name and prompt
- Verify name is defaulted to "bob's agent" assuming the creating user is named "bob"
- Verify name is editable
- Verify default prompt is present
- Verify prompt is editable
- Hit save
- Verify CreateAgent API is called in Network tab
- Verify that the new agent is optimistically shown on the Agents page with the provided details
Automated Tests
Same as manual
Issue Owner
Current Issue Owner: @NicolasBonet
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:
New agentbutton that:Manual Test Steps
Since the back-end is not yet returning agents, this can be tested while offline.
Automated Tests
Same as manual
Issue Owner
Current Issue Owner: @NicolasBonet