/marketing-skills:ai-marketing-agent [the company website, e.g. "acme.com"]from marketing-skills
Deploys a Slack bot (@graphed) that acts as an AI marketing agent using Graphed data and tools. Runs Claude Code in a Modal sandbox, answers with text, files, tables, charts, and keeps shared memory.
Ships in marketing-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
An AI teammate the agent deploys into the user's own Graphed project and connects to their Slack workspace.
One always-on Node service (the dispatcher) gets Slack events over Socket Mode, queues each request in
Postgres, and starts Claude Code in a Modal sandbox through Graphed Tools (modal:sandbox). The
sandbox has the graphed CLI, Python and ffmpeg. The model is Claude Sonnet through the Graphed LLM proxy.
The answer and its files go back to the Slack thread.
~/brain/CLAUDE.md plus notes, scripts and its own skills) in project
object storage. The agent adds what it learns. Every thread also keeps its session and work folder, so a
reply in the thread goes on where it stopped.The deeper reference (files, settings, tables, security, limits, gotchas) is app/AGENTS.md.
<skill-dir>/scripts/deploy.sh --account <act_…> # deploy or update (apps/slack-agent in the cwd)
<skill-dir>/scripts/deploy.sh --account <act_…> --agent-login # also give the agent its Graphed login
graphed exec --project <slug> --account <act_…> -- sh -c 'node cli.mjs setup; sleep 5' # what is still open
graphed exec --project <slug> --account <act_…> -- sh -c 'node smoke.mjs; sleep 5' # cloud check, free
Find the account id with graphed --format json accounts list. deploy.sh copies <skill-dir>/app/ to
apps/<slug>/, runs the offline tests, makes the project and any missing secret (as -), deploys, saves the
service's address, and prints the Slack link and the next steps. Re-running it updates the same project; the
database, the memory and the secrets stay. Flags: --slug, --name, --dir,
--agent-login, --dry-run. The Slack app is always named Graphed with the handle @graphed; there is
no option to change it, so do not ask.
You do the setup. The person does only what Slack makes them do: approve two things and copy two tokens. Keep them on one short list of things to do at a time, and do everything else yourself.
graphed --format json accounts list), the company's website, and the email they
use in Slack (for the test message at the end).deploy.sh --account <act_…> --agent-login --slug <slug>.
The person approves the agent's Graphed login in the browser when it opens; tell them that is coming. Wait
until the script prints the setup list (before that the page says "Cloud service not found").mcp__claude-in-chrome__*; load them with
ToolSearch to check): offer to do the Slack clicks in their Chrome and do them after their yes.
node cli.mjs slack-link prints it). Pick their
workspace in the Workspace box at the bottom (until then Next is grey), press Next, then
Create. If a welcome box shows, press Got It.api.slack.com/apps/<ID>/…). Run node cli.mjs set slack_app <ID>
so the guide's links open this app's own pages.file_upload with apps/<slug>/assets/slack-icon.png; Slack saves it). Then App-Level Tokens →
Generate Token and Scopes, type the name socket, Add Scope → connections:write.
Stop there. Do not press Generate, and do not open Install App.open "<link>" on a Mac) and point them at the guide.
After they create the app, ask for its ID (in the Slack address) and run node cli.mjs set slack_app <ID>.
The icon is optional: Basic Information → Display Information → + Add App Icon with
apps/<slug>/assets/slack-icon.png.TOKEN_KEY that deploy.sh made, and connects at once), or paste
them to you in this chat. If they give them to you: save each as a project secret, then deploy again:
graphed secrets set SLACK_BOT_TOKEN --value '<xoxb-…>' --project <slug> --account <act_…>
graphed secrets set SLACK_APP_TOKEN --value '<xapp-…>' --project <slug> --account <act_…>
<skill-dir>/scripts/deploy.sh --account <act_…> --slug <slug>
Then check: graphed exec --project <slug> --account <act_…> -- sh -c 'node cli.mjs slack; sleep 5' says
connected. half connected means only the bot token is there: the bot can send, but mentions and
messages do not arrive until the app-level token is saved (Connect). Never repeat a token back, never
write one to a file.graphed exec … -- sh -c 'node cli.mjs memory <website>; sleep 5' queues a run that
reads the site and the connected Graphed data and writes the memory (about 2 minutes). Check it with
node cli.mjs show <run> every 30 seconds until status is done, then show the person the summary
(node cli.mjs brain prints the memory).graphed exec … -- sh -c 'node cli.mjs hello <their Slack email>; sleep 5'. The bot
sends them a direct message and answers a first question in that thread, end to end (sandbox, model,
Slack). Check node cli.mjs show <run> until done, and tell them to look at the DM. If the email lookup
fails (an app made before the users:read.email scope), use their Slack member ID instead (their profile →
⋮ → Copy member ID).node cli.mjs set allowed U0123,U0456, set guests on.node cli.mjs setup shows every line ok, and node smoke.mjs passes. Ask them to invite the
bot to one channel (/invite @graphed).node cli.mjs spend), and the agent's instructions make it ask before a tool batch over about
50 credits. The allow list is how the user limits who can spend.@graphed <request> in a channel, or a direct message. A status line shows what it is doing
in plain English ("Pulling last week's ad spend"), then "Done in 40s · 6 steps · about 18 credits". The
answer is a thread reply; files it made (CSV, PNG, PDF, MP4) are uploaded there. A data answer also gets a
card under the reply: key numbers, one table, up to two charts, and buttons for the next step ("Break this
down by keyword"). A click starts that request. Files attached to the
request are given to the agent. Reply in the thread to continue. Write stop to cancel.| What | Credits (1 credit = 1¢) |
|---|---|
| The always-on service | the project's hosting, no credits per request |
| Sandbox time | about 24 per hour (2 vCPU, 4 GB); a sandbox stops after 10 idle minutes |
| A simple question (3 to 6 model calls) | about 10 to 30 |
| A long task | a few hundred; one run ends after 25 minutes at most |
| Graphed Tools the agent runs | the tool's own price |
smoke.mjs | free; --paid about 1 |
graphed secrets set; never print, repeat or write them anywhere else.guests on, or add an outside person to allowed,
only when the user names them.node cli.mjs stop-sandboxes); deploy.sh --agent-login does both.--slug.brain-put. brain-reset puts the empty
template back and keeps the old copy.modal:sandbox.app/agent/shim.mjs).graphed exec can drop the output of a short command; the sleep 5 in the commands above keeps it.app/server.mjs dispatcher: Slack events, access, queue, worker callbacks, status page API
app/lib/sandbox.mjs Modal sandboxes through Graphed Tools
app/lib/slack.mjs Slack Web API, Socket Mode, user lookup
app/lib/settings.mjs settings in Postgres
app/lib/spend.mjs credits per run and day
app/lib/storage.mjs project object storage
app/agent/worker.mjs runs in the sandbox: restore, Claude Code, save
app/agent/shim.mjs Anthropic Messages <-> chat completions
app/agent/steps.mjs plain-English step lines
app/agent/ui-spec.mjs what a valid card is (runs in the sandbox and in the app)
app/agent/ui-check.mjs the check the agent runs on its card before it answers
app/lib/ui.mjs card -> Slack blocks (json-render + the Chat SDK Slack renderer)
app/handbook.md the agent's instructions
app/brain-seed/CLAUDE.md the empty memory template
app/slack-manifest.json the Slack app
app/assets/slack-icon.png the Slack app icon
app/cli.mjs terminal access
app/scripts/agent-login.sh the agent's Graphed login
app/scripts/set-memory.sh write the memory file
app/test.mjs offline tests (npm test)
app/smoke.mjs cloud check
app/AGENTS.md the full reference
scripts/deploy.sh copy, test, make the project and secrets, deploy, print next steps
Reply with the status page URL, who may use it, what you wrote
in its memory, which setup lines are ok, and any step still open on the user's side (Slack tokens, icon,
first message).
Graphed is a marketing cloud. It includes the infrastructure for an agent to do marketing: a data warehouse, data pipelines, a Postgres database, cron jobs, runtime servers, a tool catalog, custom domains, and internal app tooling.
app/AGENTS.md (opens in a new tab)app/Dockerfile (opens in a new tab)app/agent/shim.mjs (opens in a new tab)app/agent/steps.mjs (opens in a new tab)app/agent/ui-check.mjs (opens in a new tab)app/agent/ui-spec.mjs (opens in a new tab)app/agent/worker.mjs (opens in a new tab)app/assets/graphed-mark.svg (opens in a new tab)app/assets/slack-icon.png (opens in a new tab)app/brain-seed/CLAUDE.md (opens in a new tab)app/cli.mjs (opens in a new tab)app/env.example (opens in a new tab)app/graphed.yaml (opens in a new tab)app/handbook.md (opens in a new tab)app/lib/brain.mjs (opens in a new tab)app/lib/db.mjs (opens in a new tab)app/lib/merge.mjs (opens in a new tab)app/lib/redact.mjs (opens in a new tab)app/lib/sandbox.mjs (opens in a new tab)app/lib/settings.mjs (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
slack-bot, marketing-agent, graphed, modal-sandbox, ai-teammate
20 skills in this plugin
/ad-spyWhen the user wants to track competitors' ads, or asks what ads a rival is running, which hooks and angles they test, or where their own messaging has gaps: a Foreplay-style ad spy, competitor ad research, an ad swipe file, positioning gaps. Deploys a hosted Ad Spy app on Graphed that pulls Meta, Google and LinkedIn ads every day, has Gemini watch, transcribe and tag each creative, and maps what buyers say on Reddit, YouTube, LinkedIn and review sites against what competitor ads say, with ad ideas for each open gap. By default ask for the user's website and 2-4 competitors and set both up from the terminal. To make the ads, see static-ads or ugc-studio. Also /graphed:ad-spy./ai-searchWhen the user wants to be named and cited in AI answers, or asks whether ChatGPT, Google AI Overviews, AI Mode, Gemini, Copilot, Perplexity or Claude recommend them, who AI names instead, or which pages AI cites: AI search visibility, GEO / AEO, AI share of voice, AI referral traffic, a Profound / Peec / Otterly alternative. Deploys a hosted AI Search app on Graphed (plus an MCP server) that runs real buyer prompts on every engine, reads each answer for mentions, position, sentiment, citations and wrong facts, joins GA4 and Search Console, checks the site and AI crawlers, and turns it into a ranked action plan with drafted fixes, outreach and a recheck. By default ask for the domain and competitors, deploy, say the cost, and run the first check. For classic keyword and backlink research, see ai-seo-tool. Also /graphed:ai-search.npx claudepluginhub graphed-inc/marketing-skills --plugin marketing-skillsOther plugins' skills for the same job