Aby Anthropic
Create a message
Returns Claude's next message for a prompt or conversation, such as a drafted email or a label for a record.
Description
Send `anthropic-version: 2023-06-01` and `content-type: application/json` with the key. The body needs `model`, `max_tokens` and `messages`; a `system` prompt is optional. On the CLI, `claude -p "<prompt>"` prints the response without starting an interactive session.
create-message.md
Create a message
Returns Claude's next message for a prompt or conversation, such as a drafted email or a label for a record.
Send anthropic-version: 2023-06-01 and content-type: application/json
with the key. The body needs model, max_tokens and messages; a system
prompt is optional. On the CLI, claude -p "<prompt>" prints the response
without starting an interactive session.
Set up
Use the first option your agent supports.
CLI (official)
Install the command, then confirm it runs.
curl -fsSL https://claude.ai/install.sh | bash
claude --version
Run claude -p.
API (official)
- Base URL: https://api.anthropic.com
- Endpoint:
POST /v1/messages - Auth: send the header
x-api-key: $ANTHROPIC_API_KEY - Get a key: https://platform.claude.com/settings/keys
- Docs: https://platform.claude.com/docs/en/api/overview
Before doing anything else, make one read-only call to confirm access.
Rules
- Ask the user before anything that sends messages, costs money, or changes data.
- Never print API keys.
Built from these files in the repository
The layout and the rules come from lib/catalog/render-markdown.ts, the set-up wording from lib/catalog/render-access.ts.
Ways in
Workflows using Create a message
TContributed by thedogwiththedataonitTurn fresh funding news into qualified outboundFind recently funded teams, enrich the right buyers, and send a relevant message while the signal is still fresh.
P
A
A+1
TContributed by thedogwiththedataonitReach new executives in their first 90 daysTrack leadership changes and open a thoughtful conversation while new priorities and budgets are being set.
A
A
H
TContributed by thedogwiththedataonitReconnect when a product champion changes jobsTrack past champions, identify their new company, and reopen the relationship with the context you already earned.
A
C
A+1
TContributed by thedogwiththedataonitWin a second open with a subject-line resendResend a campaign to the people who never opened it, with a subject line they have not seen.
B
A