mirror of
https://github.com/paperclipai/paperclip.git
synced 2026-12-05 14:35:17 +01:00
docs: fix OpenClaw onboarding to use the invite-prompt CLI (#17178)
## Thinking Path
> - Paperclip is the open source app people use to manage AI agents for
work
> - Operators connect outside agents, such as OpenClaw, through the
`openclaw_gateway` adapter
> - `doc/OPENCLAW_ONBOARDING.md` is the checklist for that setup
> - Step 4 tells the reader to click "Generate OpenClaw Invite Prompt"
in company settings
> - That control does not exist in the current UI, so the checklist
cannot be completed as written
> - The `openclaw/invite-prompt` route and the `paperclipai openclaw
invite-prompt` command still work
> - This pull request moves the checklist to the CLI command and the
route
> - The benefit is that an operator can complete the OpenClaw setup by
following the document
## Linked Issues or Issue Description
**Issue type**
Outdated documentation
**Where is the issue?**
`doc/OPENCLAW_ONBOARDING.md`, steps 3 and 4.
**What's wrong?**
Step 4 says to click `Generate OpenClaw Invite Prompt` in the Invites
section of `/CLA/company/settings`. Company settings has no Invites
section. The Invites tab on the access page creates human invites only
(`allowedJoinTypes: "human"` in `InvitesSection.tsx`).
`createOpenClawInvitePrompt` in `ui/src/api/access.ts` has no caller
outside a test mock. The new-agent picker hides `openclaw_gateway`
(`comingSoon: true` in `adapter-display-registry.ts`). A reader who
follows the document cannot create the invite.
**Suggested fix**
Create the invite with `paperclipai openclaw invite-prompt`, or call the
route directly.
## What Changed
- Replace step 3 (open company settings) with a command that lists
company ids
- Replace the button steps in step 4 with the `paperclipai openclaw
invite-prompt` command and the equivalent route
- Say where the prompt text is: `onboardingTextUrl`, or `inviteMessage`
when it is set
## Verification
I ran each step against a local instance on current `master`
(`043f251`):
- `pnpm paperclipai company list --json` returns the company id
- `pnpm paperclipai openclaw invite-prompt --company-id <id>
--payload-json '{}' --json` returns an invite with `allowedJoinTypes:
"agent"`, `onboardingTextUrl` and `inviteMessage`
- `onboardingTextUrl` returns the agent onboarding text
- In the browser, company settings and the access page have no OpenClaw
invite control, and `openclaw_gateway` is absent from the new-agent
adapter list
This is a documentation-only change. I ran no automated tests.
## Risks
Low risk. One Markdown file changes. No code, API or UI behavior
changes.
## Model Used
- Provider: Anthropic
- Model: Claude Sonnet 5.5 (`claude-sonnet-5-5`)
- Tool use and code execution through Claude Code. A human directed and
reviewed the change.
## Checklist
- [x] I have included a thinking path that traces from project context
to this change
- [x] I have specified the model used (with version and capability
details)
- [x] I have checked ROADMAP.md and confirmed this PR does not duplicate
planned core work
- [x] I have searched GitHub for duplicate or related PRs and linked
them above
- [x] I have either (a) linked existing issues with `Fixes: #` / `Closes
#` / `Refs #` OR (b) described the issue in-PR following the relevant
issue template
- [x] I have not referenced internal/instance-local Paperclip issues or
links (only public GitHub `#NNN` / `github.com/paperclipai/paperclip`
URLs)
- [x] My branch name describes the change (e.g. `docs/...`, `fix/...`)
and contains no internal Paperclip ticket id or instance-derived details
- [ ] I have run tests locally and they pass
- [ ] I have added or updated tests where applicable
- [x] I have updated relevant documentation to reflect my changes
- [x] I have considered and documented any risks above
- [ ] All Paperclip CI gates are green
- [ ] Greptile is 5/5 with no open P2s, recommendations, or follow-ups
- [x] I will address all Greptile and reviewer comments before
requesting merge
---------
Co-authored-by: RouterGlock <RouterGlock@users.noreply.github.com>
Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 file changed
+10
-3
@@ -16,11 +16,18 @@ OPENCLAW_RESET_STATE=1 OPENCLAW_BUILD=1 ./scripts/smoke/openclaw-docker-ui.sh
|
||||
```
|
||||
Open the printed `Dashboard URL` (includes `#token=...`) in your browser.
|
||||
|
||||
3. In Paperclip UI, go to `http://127.0.0.1:3100/CLA/company/settings`.
|
||||
3. Find your company id.
|
||||
```bash
|
||||
npx paperclipai company list --json
|
||||
```
|
||||
|
||||
4. Use the OpenClaw invite prompt flow.
|
||||
- In the Invites section, click `Generate OpenClaw Invite Prompt`.
|
||||
- Copy the generated prompt from `OpenClaw Invite Prompt`.
|
||||
- The Invites tab only creates human invites, and `openclaw_gateway` is not listed in the new-agent picker. Create the OpenClaw invite from the CLI:
|
||||
```bash
|
||||
npx paperclipai openclaw invite-prompt --company-id <company-id> --payload-json '{}' --json
|
||||
```
|
||||
- The same invite is available as `POST /api/companies/{companyId}/openclaw/invite-prompt` with body `{}`.
|
||||
- Open the returned `onboardingTextUrl` and copy the text, or copy `inviteMessage` when it is set.
|
||||
- Paste it into OpenClaw main chat as one message.
|
||||
- If it stalls, send one follow-up: `How is onboarding going? Continue setup now.`
|
||||
|
||||
|
||||
Reference in new issue
Block a user