Agentic crm setup

From grandamenium/cortextos · View interactive version

Agentic crm setup is an AI agent skill from the GitHub repository grandamenium/cortextos. Full interactive setup for the agentic CRM personal assistant template. Use at first boot or whenever the user asks to configure/reconfigure the assistant.

How to use this skill

Skill file

Agentic CRM Setup Skill

This skill turns the generic template into a user's assistant. It is intentionally a full onboarding, not a quick questionnaire.

Setup Principles

Tuning Knobs to Collect

Identity

Scope

Privacy

Approval Rules

Tools

Schedule and Crons

CRM Schema

Tool Discovery + Connect (do NOT hand-wave this)

This is the make-or-break step. Detecting a tool is not connecting it. For every

domain the user names a service for, run the full tool-discovery connect loop:

prefer a CLI, research that CLI live if you do not already know it, walk the user

through install + auth in the conversation, and verify with a real read before

moving on. See tool-discovery/SKILL.md for the loop; the short version:

  1. Detect what is already installed and authed.
  2. Per domain (email, calendar, contacts, meeting notes, messaging/iMessage,

external CRM): ask what service they use.

  1. Prefer CLI > connector/MCP > browser. If you do not know the CLI for the named

service, research it (WebSearch/WebFetch its install + auth docs, or read

<cli> --help) before instructing the user.

  1. Walk them through it on the fly — exact install command, then the exact auth

command they run themselves (e.g. ! gog login you@example.com). Secrets never

go in chat.

  1. Verify with a real action (gog auth status + list today's calendar; list the

latest meeting note; a bounded iMessage read) and report the result in Telegram.

  1. Record each connected tool in TOOLS.md with how it was verified. Loop.

Only create a [HUMAN] task if the user cannot complete an auth step right now

(e.g. needs an admin, a paid plan, or credentials they do not have). Make it

specific — the exact tool, the exact command, and where the credential goes — not

a generic "connect your tools":

cortextos bus create-task "[HUMAN] Finish <tool> auth for $CTX_AGENT_NAME" --desc "Run: <exact command>. Credential goes in <exact location>. Do not paste secrets in chat. Blocking: <which workflow this unblocks>."

File Writes

After gathering answers, update:

Suggested Question Batches

Batch 1: Identity and Scope

Ask:

  1. What should I be called?
  2. What should I call you?
  3. What kind of personal assistant should I be for you?
  4. Which domains should I manage: inbox, calendar, meetings, CRM, personal reminders, travel, errands, finances, other?
  5. What should I never touch?

Batch 2: Tools

Ask which service they use per domain, then run the Tool Discovery + Connect loop

above for each one (research the CLI, walk them through auth, verify):

  1. Email + calendar — which provider (Gmail/Google, Outlook, other)?
  2. Meeting notes — Granola, Fathom, Fireflies, Zoom, other, none?
  3. Messaging — do you want me to read/handle iMessage or another messenger?
  4. Contacts — Google Contacts, phone export, an external CRM, none?
  5. External CRM — HubSpot/Pipedrive/Airtable/Notion/etc, or local files as source of truth?

Tell them up front: for each one they name, I will find the right CLI, walk you

through connecting it right here, and confirm it works before moving on. No secrets

in chat.

Batch 3: CRM

Ask:

  1. What relationship categories do you want?
  2. Who are the first VIPs I must never miss?
  3. What counts as a relationship going stale?
  4. What interaction types matter?
  5. What tags or custom fields matter in your life/business?

Batch 4: Schedule

Ask:

  1. Working hours and quiet hours?
  2. Protected time blocks?
  3. Preferred meeting windows and buffer rules?
  4. When should I send morning/evening/pending-items summaries?
  5. How often should I do relationship reviews?

Batch 5: Approval Rules

Ask:

  1. What may I do autonomously?
  2. What always requires approval?
  3. Are there contacts/domains I may message without approval?
  4. Should I create drafts automatically?
  5. Should I create calendar holds autonomously or only propose them?

Completion

When setup is complete:

mkdir -p "${CTX_ROOT}/state/${CTX_AGENT_NAME}"
touch "${CTX_ROOT}/state/${CTX_AGENT_NAME}/.onboarded"
cortextos bus update-heartbeat "setup complete; CRM assistant online"
cortextos bus log-event action onboarding_completed info --meta '{"agent":"'$CTX_AGENT_NAME'","template":"agentic-crm-assistant"}'

Send the user a concise summary:

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.