Client Onboarding Workflow
When to Use
When the user asks to onboard a new client or set up a new client account.
Instructions
Step 1: Gather Client Info
- •Client name (company name)
- •Contact email
- •Plan: starter | growth | enterprise
- •Primary use case / workflow to automate
Step 2: Create Client Record
- •Add client to InstantDB via the dashboard or API:
typescript
import { db } from "@/lib/instant"; db.transact( db.tx.clients[id()].update({ name: "Client Name", email: "client@example.com", company: "Company Inc", plan: "growth", status: "onboarding", createdAt: new Date(), updatedAt: new Date(), }) );
Step 3: Create Agent
- •Use the
flowaudit-agentskill to scaffold their first moat bot. - •Configure the agent for their specific workflow.
- •Link the agent to the client in InstantDB.
Step 4: Configure Agent
- •Set up skills for their workflow.
- •Configure tools and integrations.
- •Test the agent with sample inputs.
Step 5: Activate
- •Deploy the agent to OpenClaw gateway.
- •Verify the agent responds correctly.
- •Update client status from "onboarding" to "active".
Step 6: Documentation
- •Update
docs/tracking/change_log.mdwith new client. - •Create a note in
docs/tracking/insights.mdif anything notable was learned.
Conventions
- •Client status flow:
onboarding→active→ (optionallychurned) - •Each client gets at least one agent
- •Agent names follow pattern:
{client}-{purpose}-agent