Sophiie AI Office Manager
by @tomc98
Manage your Sophiie sales pipeline — leads, inquiries, appointments, FAQs, policies, SMS, and calls via the Sophiie REST API.
clawhub install sophiie📖 About This Skill
name: sophiie description: Manage your Sophiie sales pipeline — leads, inquiries, appointments, FAQs, policies, SMS, and calls via the Sophiie REST API. metadata: openclaw: requires: env: - SOPHIIE_API_KEY bins: - curl - jq primaryEnv: SOPHIIE_API_KEY emoji: "📞" homepage: https://docs.sophiie.ai files: - SKILL.md - README.md - scripts/sophiie.sh
Sophiie — Sales Pipeline Management
Sophiie is a B2B SaaS platform for sales pipeline management. Organizations get AI-powered virtual assistant agents that handle calls, SMS, and lead management. This skill lets you manage your Sophiie pipeline via natural language.
Authentication
All requests use Authorization: Bearer where the key is SOPHIIE_API_KEY. Keys are prefixed sk_live_* (production) or sk_test_* (sandbox).
https://api.sophiie.aiExternal Endpoints
| Method | URL | Data Sent |
|--------|-----|-----------|
| GET | https://api.sophiie.ai/v1/leads | Query: page, limit |
| GET | https://api.sophiie.ai/v1/leads/{id} | None |
| POST | https://api.sophiie.ai/v1/leads | Body: firstName, lastName, email, phone, suburb, businessName, socials |
| PUT | https://api.sophiie.ai/v1/leads/{id} | Body: firstName, lastName, email, phone, suburb, businessName, socials |
| DELETE | https://api.sophiie.ai/v1/leads/{id} | None |
| GET | https://api.sophiie.ai/v1/leads/{id}/notes | Query: page, limit |
| GET | https://api.sophiie.ai/v1/leads/{id}/activities | Query: page, limit |
| GET | https://api.sophiie.ai/v1/inquiries | Query: page, limit, leadId, expand |
| GET | https://api.sophiie.ai/v1/inquiries/{id} | None |
| GET | https://api.sophiie.ai/v1/appointments | Query: page, limit, leadId |
| POST | https://api.sophiie.ai/v1/calls | Body: name, phoneNumber, mode, custom_instructions |
| POST | https://api.sophiie.ai/v1/sms | Body: userId, leadId, message, messageThreadId |
| GET | https://api.sophiie.ai/v1/faqs | Query: page, limit |
| POST | https://api.sophiie.ai/v1/faqs | Body: question, answer, isActive |
| PUT | https://api.sophiie.ai/v1/faqs/{id} | Body: question, answer, isActive |
| DELETE | https://api.sophiie.ai/v1/faqs/{id} | None |
| GET | https://api.sophiie.ai/v1/policies | Query: page, limit |
| POST | https://api.sophiie.ai/v1/policies | Body: title, content, isActive |
| PUT | https://api.sophiie.ai/v1/policies/{id} | Body: title, content, isActive |
| DELETE | https://api.sophiie.ai/v1/policies/{id} | None |
| GET | https://api.sophiie.ai/v1/members | Query: page, limit |
| GET | https://api.sophiie.ai/v1/organization | None |
| GET | https://api.sophiie.ai/v1/organization/availability | None |
| GET | https://api.sophiie.ai/v1/organization/members | Query: page, limit |
| GET | https://api.sophiie.ai/v1/organization/services | None |
| GET | https://api.sophiie.ai/v1/organization/products | None |
Security & Privacy
SOPHIIE_API_KEY is never logged, printed, or echoed in outputjq -n (never string-interpolated into JSON bodies)SOPHIIE_API_KEY — it cannot modify or delete the environment variableCommand Reference
All commands are run via scripts/sophiie.sh .
Leads
leads list — List all leads in the pipeline
--page Page number (default: 1)
--limit Items per page (default: 50, max: 100)
Use when the user wants to see their pipeline, check leads, or browse contacts.leads get — Get full details for a specific lead
Use when the user asks about a specific lead by name or ID. Lead IDs start with ld_.
leads create — Create a new lead
--firstName Required (min 2 chars)
--suburb Required
--lastName Optional
--email Optional (valid email)
--phone Optional (E.164 format, e.g. +61412345678)
--businessName Optional
--instagram Optional
--facebook Optional
Use when the user wants to add a new contact or lead to their pipeline.leads update — Update an existing lead
Same options as create, but all are optional. At least one field must be provided.
Use when the user wants to change lead details.
leads delete — Delete a lead (soft delete)
Use when the user explicitly asks to remove a lead. Always confirm before deleting.
leads notes — List notes for a lead
--page Page number (default: 1)
--limit Items per page (default: 50, max: 100)
Use when the user asks about notes or history on a specific lead.leads activities — List activity log for a lead
--page Page number (default: 1)
--limit Items per page (default: 50, max: 100)
Use when the user wants to see what happened with a lead (timeline, events).Inquiries
inquiries list — List all inquiries
--page Page number (default: 1)
--limit Items per page (default: 50, max: 100)
--leadId Filter by lead ID (ld_...)
--expand Expand related data: "external", "lead", or "both"
Use when the user asks about incoming inquiries, messages, or calls received.inquiries get — Get full inquiry details with source data
Returns the inquiry with expanded source data (call transcripts, SMS messages, webform submissions, etc.) depending on the inquiry source type (CALL, SMS, EMAIL, CHATBOT, WEBFORM).
Use when the user wants details on a specific inquiry.
FAQs
faqs list — List all FAQs
--page Page number (default: 1)
--limit Items per page (default: 50, max: 100)
Use when the user wants to see their knowledge base or FAQ entries.faqs create — Create a new FAQ
--question Required (max 255 chars)
--answer Required
--isActive Optional (true/false)
Use when the user wants to add to their AI agent's knowledge base.faqs update — Update an FAQ (ID is a number)
Same options as create, all optional.
Use when the user wants to change an existing FAQ entry.
faqs delete — Delete an FAQ (soft delete)
Always confirm before deleting.
Policies
policies list — List all policies
--page Page number (default: 1)
--limit Items per page (default: 50, max: 100)
Use when the user asks about their business policies.policies create — Create a new policy
--title Required (min 2, max 255 chars)
--content Required (min 2 chars)
--isActive Optional (true/false)
Use when the user wants to add a business policy for their AI agent.policies update — Update a policy (ID is a number)
Same options as create, all optional.
policies delete — Delete a policy (soft delete)
Always confirm before deleting.
Communication
calls send — Initiate an outbound AI call
--name Required — name of person being called
--phoneNumber Required — E.164 format (e.g. +61412345678)
--mode Optional — "normal" (default) or "transfer_only"
--custom_instructions Optional — required when mode is "transfer_only"
Use when the user wants to call someone. Always confirm the phone number before calling.sms send — Send an SMS message
--userId Required — sender user ID (usr_...)
--leadId Required — recipient lead ID (ld_...)
--message Required — message text (min 2 chars)
--messageThreadId Optional — existing thread ID (number); omit to start new thread
Use when the user wants to text a lead. You need to know the userId — use members list first if needed.Appointments
appointments list — List all appointments
--page Page number (default: 1)
--limit Items per page (default: 50, max: 100)
--leadId Filter by lead ID (ld_...)
Use when the user asks about upcoming appointments or scheduled meetings.Organization
org get — Get organization details (name, timezone, currency, etc.)
Use when the user asks about their org settings or business info.
org availability — Get business hours / availability schedules
Use when the user asks about working hours or availability.
org members — List organization members with roles
--page Page number (default: 1)
--limit Items per page (default: 50, max: 100)
Use when the user asks about team members (returns membership-level data with positions/avatars).org services — List services offered (grouped by category)
Use when the user asks about their service offerings.
org products — List products offered (grouped by category)
Use when the user asks about their product catalog.
Members
members list — List all organization members
--page Page number (default: 1)
--limit Items per page (default: 50, max: 100)
Use when you need user IDs (usr_...) for operations like sending SMS. Returns user-level data with roles.Decision Guide
| User intent | Command(s) |
|-------------|-----------|
| "Check my pipeline" / "Show leads" | leads list |
| "Tell me about [lead name]" | leads list → find by name → leads get |
| "Add a new lead" / "New contact" | leads create |
| "Update [lead]'s phone number" | leads update |
| "Remove this lead" | leads delete (confirm first) |
| "What inquiries came in?" | inquiries list |
| "Show me that call transcript" | inquiries get |
| "Any appointments today?" | appointments list |
| "Call [person]" / "Ring [number]" | calls send (confirm number first) |
| "Text [lead] about [topic]" | members list → get userId → sms send |
| "Update the knowledge base" | faqs list → then faqs create or faqs update |
| "Add a refund policy" | policies create |
| "What are our business hours?" | org availability |
| "Who's on the team?" | members list or org members |
| "What services do we offer?" | org services |
Pagination
All list endpoints return paginated responses:
{
"items": [...],
"totalPages": 5,
"currentPage": 1,
"totalCount": 237
}
totalPages — if there are more pages, tell the user and offer to fetch the next pageError Reference
| Code | Meaning | What to tell the user | |------|---------|----------------------| | 401 | Invalid or missing API key | "Your API key appears to be invalid. Check SOPHIIE_API_KEY." | | 404 | Resource not found | "That [lead/inquiry/etc.] wasn't found. Double-check the ID." | | 409 | Conflict (duplicate lead) | "A lead with that info already exists." | | 429 | Rate limited | "Too many requests. Wait a moment and try again." | | 500 | Server error | "Something went wrong on Sophiie's end. Try again shortly." |
Error responses have this shape:
{
"success": false,
"message": "...",
"error": { "status": 401, "message": "..." }
}