Skip to content

[Hold] [No QA] Docs updates for E/A#105142 Document creating agents from workspace Agents page - #105194

Closed
MelvinBot wants to merge 1 commit into
mainfrom
claude-docsWorkspaceAgentsPage
Closed

MelvinBot wants to merge 1 commit into
mainfrom
claude-docsWorkspaceAgentsPage

Conversation

@MelvinBot

Copy link
Copy Markdown
Contributor

Explanation of Change

Help site update for [No QA] Remove companyAgents beta.

New feature: That PR removed the companyAgents beta, so the Agents item in Workspaces > [workspace name] is now shown to everyone on Collect and Control workspaces. From there, workspace admins and people admins can select New agent to create an agent for the workspace and choose its Role. Members can view the workspace's agents but can't create them.

Create and Use Agents only describes creating agents from Account > Agents. This PR updates that article:

  • Adds one sentence to "Who can use agents" saying who can create agents for a workspace and where.
  • Adds a short "To create an agent for a workspace:" step list under "How to create an agent". It covers the Role field, which only appears in the workspace flow.
  • Adds workspace agents to the keywords.

UI labels (Agents, New agent, Build custom agent, Role, Write custom instructions, Create agent) were checked against src/languages/en.ts and the live web UI:

Workspace Agents page with New agent button Build custom agent form with Role field Role picker options

@s77rt, please review the files changed and confirm they reflect the current behavior. Then post a new comment saying @MelvinBot mark this PR as ready for review.

Fixed Issues

$
PROPOSAL:

Tests

// TODO: The human co-author must fill out the tests you ran before marking this PR as "ready for review"
// Please describe what tests you performed that validates your changed worked.

  • Verify that no errors appear in the JS console

Offline tests

QA Steps

// TODO: The human co-author must fill out the QA tests you ran before marking this PR as "ready for review".
// Please describe what QA needs to do to validate your changes and what areas do they need to test for regressions.

  • Verify that no errors appear in the JS console

PR Author Checklist

  • I linked the correct issue in the ### Fixed Issues section above
  • I wrote clear testing steps that cover the changes made in this PR
    • I added steps for local testing in the Tests section
    • I added steps for the expected offline behavior in the Offline steps section
    • I added steps for Staging and/or Production testing in the QA steps section
    • I added steps to cover failure scenarios (i.e. verify an input displays the correct error message if the entered data is not correct)
    • I turned off my network connection and tested it while offline to ensure it matches the expected behavior (i.e. verify the default avatar icon is displayed if app is offline)
    • I tested this PR with a High Traffic account against the staging or production API to ensure there are no regressions (e.g. long loading states that impact usability).
  • I included screenshots or videos for tests on all platforms
  • I ran the tests on all platforms & verified they passed on:
    • Android: Native
    • Android: mWeb Chrome
    • iOS: Native
    • iOS: mWeb Safari
    • MacOS: Chrome / Safari
  • I verified there are no console errors (if there's a console error not related to the PR, report it or open an issue for it to be fixed)
  • I verified any copy / text that was added to the app is either coming verbatim from figma or has been approved by marketing (in order to get marketing approval, ask the Bug Zero team member to add the Waiting for copy label to the issue)
  • If a new code pattern is added I verified it was agreed to be used by multiple Expensify engineers
  • I tested other components that can be impacted by my changes (i.e. if the PR modifies a shared library or component like Avatar, I verified the components using Avatar are working as expected)
  • If new assets were added or existing ones were modified, I verified that:
    • The assets are optimized and compressed (for SVG files, run npm run compress-svg)
    • The assets load correctly across all supported platforms.
  • If the PR modifies code that runs when editing or sending messages, I tested and verified there is no unexpected behavior for all supported markdown - URLs, single line code, code blocks, quotes, headings, bold, strikethrough, and italic.
  • If the PR modifies a generic component, I tested and verified that those changes do not break usages of that component in the rest of the App (i.e. if a shared library or component like Avatar is modified, I verified that Avatar is working as expected in all cases)
  • If the PR modifies a component related to any of the existing Storybook stories, I tested and verified all stories for that component are still working as expected.
  • If the PR modifies a component or page that can be accessed by a direct deeplink, I verified that the code functions as expected when the deeplink is used - from a logged in and logged out account.
  • If the PR modifies the UI (e.g. new buttons, new UI components, changing the padding/spacing/sizing, moving components, etc) or modifies the form input styles:
    • I verified that all the inputs inside a form are aligned with each other.
    • I added Design label and/or tagged @Expensify/design so the design team can review the changes.
  • If the PR adds or modifies the UI:
    • I asked an AI agent to review the changes for accessibility issues and addressed its findings.
    • I tested with a screen reader (VoiceOver on macOS) and verified all new/changed elements are reachable with a logical focus order.
    • I verified all new/changed elements have meaningful accessible names and roles.
    • I verified state changes are announced (e.g. checked/unchecked, expanded/collapsed, selected).
  • I added unit tests for any new feature or bug fix in this PR to help automatically prevent regressions in this user flow.
  • If the main branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to the Test steps.

Screenshots/Videos

Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari

Co-authored-by: Abdelhafidh Belalia <s77rt@users.noreply.github.com>
@MelvinBot MelvinBot added the HelpDot Apply this label if the issue relates to ExpensifyHelp label Oct 27, 2026
@MelvinBot
MelvinBot requested a review from a team October 27, 2026 22:22
@MelvinBot MelvinBot mentioned this pull request Oct 27, 2026
38 tasks done
@stephanieelliott stephanieelliott changed the title Docs updates for E/A#105142 Document creating agents from workspace Agents page [No QA] Docs updates for E/A#105142 Document creating agents from workspace Agents page Oct 28, 2026
@stephanieelliott
stephanieelliott marked this pull request as ready for review October 30, 2026 21:03
@stephanieelliott
stephanieelliott self-requested a review as a code owner October 30, 2026 21:03
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 30, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ⚠️ Failed 2026-10-30T22:04:09.829833Z
We couldn’t complete this review. Comment @codex review to try again.
d11bfb6 Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@melvin-bot

melvin-bot Bot commented Oct 30, 2026

Copy link
Copy Markdown

Product reviewer checklist:

  • I have verified the accuracy of the article
    • The article is within a hub that makes sense, and the navigation is correct
    • All processes, screenshots, and examples align with current product behavior.
    • All links within the doc have been verified for correct destination and functionality.
  • I have verified the readability of the article
    • The article's language is clear, concise, and free of jargon.
    • The grammar, spelling, and punctuation are correct.
    • The article contains at least one image, or that an image is not necessary
  • I have verified the formatting of the article
    • The article has consistent formatting (headings, bullet points, etc.) with other HelpDot articles and that aligns with the HelpDot formatting standards.
    • The article has proper text spacing and breaks for readability.
  • I have verified the article has the appropriate tone and style
    • The article's tone is professional, friendly, and suitable for the target audience.
    • The article's tone, terminology, and voice are consistent throughout.
  • I have verified the overall quality of the article
    • The article is not missing any information, nor does it contain redundant information.
    • The article fully addresses user needs.
  • I have verified that all requested improvements have been addressed

For more detailed instructions on completing this checklist, see How do I review a HelpDot PR?

cc @trjExpensify

@melvin-bot
melvin-bot Bot requested review from trjExpensify and removed request for a team October 30, 2026 21:03
@github-actions

Copy link
Copy Markdown
Contributor

HelpDot Documentation Review

Overall Assessment

This PR extends Create-and-Use-Agents.md to document creating agents at the workspace level (in addition to personal agents). The diff adds one keyword (workspace agents), a sentence noting that workspace admins and people admins can create workspace agents on the Collect and Control plans, and a new numbered "To create an agent for a workspace" procedure under the existing How to create an agent section. The additions are well written and closely follow the naming and navigation conventions. The main concern is scope: the metadata internalScope was not updated to reflect the new workspace-creation workflow, and the article now blends personal and workspace creation flows.

Scores Summary

  • Readability: 9/10 - The new sentence and steps are clear, sequential, and action-oriented, matching the style of the surrounding procedures.
  • AI Readiness: 7/10 - A new keyword was added, but internalScope still says the article covers creating personal agents without mentioning the newly documented workspace-agent creation flow. The new content sits under an existing heading rather than its own task-based ## heading, so it is less independently retrievable.
  • Style Compliance: 9/10 - Plan names capitalized with lowercase "plan," lowercase roles, bolded navigation path with lowercase placeholder, correct use of select vs choose. Minor consistency note on navigation phrasing below.

Key Findings

  • Positive: The added workspace-creation steps correctly use the navigation tabs phrasing, a bolded **Workspaces > [workspace name] > Agents** path with a lowercase placeholder, select for UI actions, and choose for the role decision (step 4).
  • Positive: Plan and role usage is compliant: "Collect and Control plans" (capitalized plan names, lowercase "plan"), "workspace admins and people admins" (lowercase roles).
  • Issue (metadata/scope): internalScope was not updated. It still describes only creating/managing personal agents and "using an agent as a workspace approver." The new ability to create a workspace agent should be reflected so metadata matches content and search intent.
  • Issue (consistency): The intro sentence references the path **Workspaces > [workspace name] > Agents** without the "In the navigation tabs" lead-in, while the procedure step uses the full "In the navigation tabs (on the left on web, on the bottom on mobile), select ..." form. The prose reference is acceptable, but confirm consistency with how other paths are introduced in prose elsewhere in the article.
  • Scope consideration: The article already covers several workflows (personal create, chat, edit, delete, approver). Adding workspace-agent creation further broadens it. This is acceptable as an extension of the "create" workflow, but watch that workspace-agent management (edit/delete) does not get pulled in later, which would push the article past the one-primary-workflow guidance.

Recommendations

  • Update internalScope to mention creating an agent for a workspace (and who can do it) so metadata aligns with the new content and retrieval intent.
  • Consider whether the workspace-agent creation flow warrants its own task-based ## heading (for example, "How to create an agent for a workspace") to improve AI retrieval, rather than living as a sub-block under "How to create an agent."
  • Verify the step 4 role label (Role) matches the exact UI label in src/languages/en.ts / production.

Files Reviewed

  • docs/articles/new-expensify/ai-agents/Create-and-Use-Agents.md - Additions are compliant and well written; update internalScope and consider a dedicated heading for the workspace flow.

Note: Detailed line-by-line feedback has been provided as inline comments.

@@ -26,6 +26,8 @@ Agents are available for all members, and anyone can create an agent.

**Agents** appears under **Account** with a **Beta** badge. The badge means the feature is still being improved, not that you need access granted.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Scope / single-workflow violation: This article is scoped to personal agents (see internalScope and audience: "members with access to agents"). Introducing workspace-level agent creation for workspace admins and people admins adds a second audience and workflow. HELP_AUTHORING_GUIDELINES Section 1 ("one workflow per article") and Section 6 ("Avoid multi-feature coverage"; "Do not combine Admin + Member flows unless inseparable") warn against this. Either move workspace-agent creation to its own article, or update internalScope/audience to explicitly include the admin workspace-creation flow.

5. Review the auto-generated profile image and display name. If needed, you can edit these later.
6. Select **Create agent**.

**To create an agent for a workspace:**

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

AI readiness / retrieval: This admin-oriented workspace-creation procedure is nested under ## How to create an agent, a section otherwise written for personal agents. Per HELP_AUTHORING_GUIDELINES Section 2, sections should be task-based and feature-specific. Consider a dedicated task-based ## heading (for example, ## How to create an agent for a workspace) so the distinct workflow is searchable and retrievable, rather than a bolded lead-in inside the personal-agent section.

@@ -26,6 +26,8 @@ Agents are available for all members, and anyone can create an agent.

**Agents** appears under **Account** with a **Beta** badge. The badge means the feature is still being improved, not that you need access granted.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Scope / single-workflow violation: This article is scoped to personal agents (see internalScope and audience: "members with access to agents"). Introducing workspace-level agent creation for workspace admins and people admins adds a second audience and workflow. HELP_AUTHORING_GUIDELINES Section 1 ("one workflow per article") and Section 6 ("Avoid multi-feature coverage"; "Do not combine Admin + Member flows unless inseparable") warn against this. Either move workspace-agent creation to its own article, or update internalScope/audience and the keywords to explicitly include the admin workspace-creation flow.

5. Review the auto-generated profile image and display name. If needed, you can edit these later.
6. Select **Create agent**.

**To create an agent for a workspace:**

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

AI readiness / retrieval: This admin-oriented workspace-creation procedure is nested under ## How to create an agent, a section otherwise written for personal agents. Per HELP_AUTHORING_GUIDELINES Section 2, sections should be task-based and feature-specific. Consider a dedicated task-based ## heading (for example, ## How to create an agent for a workspace) so the distinct workflow is searchable and retrievable, rather than a bolded lead-in inside the personal-agent section.

@stephanieelliott
stephanieelliott removed the request for review from trjExpensify October 30, 2026 21:12
@stephanieelliott stephanieelliott changed the title [No QA] Docs updates for E/A#105142 Document creating agents from workspace Agents page [Hold] [No QA] Docs updates for E/A#105142 Document creating agents from workspace Agents page Oct 30, 2026
@stephanieelliott

Copy link
Copy Markdown
Contributor

I agree with the QA bot that this feature is out of scope for this article. Putting a hold on this, I will handle changes manually.

@stephanieelliott

Copy link
Copy Markdown
Contributor

@MelvinBot please review the changes in [PR #105142](#105142) and determine whether they require updates to the help articles in docs/articles on the [claude-companyAgentsHelpDocs branch](https://github.com/Expensify/App/tree/claude-companyAgentsHelpDocs).

If updates are needed, commit them directly to claude-companyAgentsHelpDocs so they are included in the existing [PR #105146](#105146). If no updates are needed, leave a comment explaining why.

@MelvinBot

Copy link
Copy Markdown
Contributor Author

No help article updates are needed on claude-companyAgentsHelpDocs. I didn't commit anything to [No QA] Add help content for company agents.

[No QA] Remove companyAgents beta only removes the beta gate. That gate hid the workspace Agents item and blocked its page. Who can see the item, who can create agents, the Beta badge, and the create flow are all unchanged. The articles already describe company agents as available on all Collect and Control workspaces, with no beta-access wording to remove.

One thing to update on that PR: item 1 under "Please check before merging" says company agents are still behind the beta. That's no longer true, so the PR can merge once it's reviewed.

What I checked
  • Menu visibility: After the merge, Agents shows when the workspace is a group workspace (Collect or Control), the person can read the Agents feature, and they aren't Copiloted into an agent. It's still inserted after Members with a Beta badge (getWorkspaceMenuItems.ts:258-267). This matches Create-and-Manage-Company-Agents.md:21-23 and the FAQ at lines 111-113.
  • Page access: The PR removed only shouldBeBlocked={!isCompanyAgentsBetaEnabled}. The page is still limited to paid workspaces, and New agent is still controlled by the same write-permission check (WorkspaceAgentsPage.tsx:54-72).
  • Beta wording: I searched all five articles in the PR for beta-gating language. The only matches describe the Beta badge, which is still shown.
  • No UI copy changes: The PR changes no labels or translation strings.

Optional: Create-and-Manage-Company-Agents.md:23 could reuse the line from Create and Use Agents: "The badge means the feature is still being improved, not that you need access granted." That's true now that the gate is gone. Reply if you want me to add it.


view run

@stephanieelliott

Copy link
Copy Markdown
Contributor

#105146 is a much more cohesive update and solves the scope concern. Will continue working in that issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

HelpDot Apply this label if the issue relates to ExpensifyHelp

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants