Documentation

Anthropic + Tevyr

Drive Claude — Opus, Sonnet, or Haiku — from inside any Tevyr macro. Same use cases as OpenAI (copy generation, summarization, classification, tone rewrites), routed through Anthropic's API. Paste a key, fire prompts, capture replies in downstream steps.

What's Anthropic?

Anthropic builds the Claude family of models. The API uses x-api-key auth (not Authorization: Bearer) and requires an anthropic-version header — Tevyr's template handles both automatically. Get an account at anthropic.com.

What you can do

Copy generation in Claude's voice

Generate teases, summaries, recap copy — same recipes as OpenAI, but produced by Claude. Pick the model based on price/quality: Opus for production copy, Haiku for high-volume classification.

Long-context summarization

Claude's models handle long prompts well — feed the full session transcript and ask for a structured summary. Capture and post to Notion.

Tone-shifted message rewrites

Operator types a quick alert; ask Claude to rewrite in a 'calm and reassuring' or 'urgent and direct' tone before it hits the on-stage display.

Q&A classification + extraction

Classify questions, extract entities, surface duplicates. Claude Haiku is fast and cheap enough for per-submission analysis.

Prerequisites

One-time setup

  1. Visit console.anthropic.com/settings/keys
  2. Click Create Key, name it Tevyr, click Create
  3. Copy the key — it starts with sk-ant-… and is shown only once
  4. In Tevyr, Settings → Integrations → Add new → Anthropic
  5. Paste the key, name the connection (e.g. "Claude — production"), click Save

Why the test button shows "skipped"

Anthropic charges for every API call, including the smallest probe. Tevyr deliberately skips the live test to avoid accumulating per-click charges on a button that's meant to be free. The connection-create form still validates the URL, DNS, and token shape — and your first real macro fire surfaces any auth, model, or quota issue immediately.

The skipped probe shows as a neutral grey toast — that's expected. If it shows red, the URL / DNS / token shape failed sanity check (re-paste the key).

Recipes

Drag flow.http_request, pick your Anthropic connection, pick the Messages create action.

Recipe 1 — Generate a session tease (Claude Sonnet)

FieldValue
Modelclaude-sonnet-4-6
PromptWrite a one-line teaser for an event session titled "{{ctx.session.name}}". Keep it under 12 words.
Max tokens60

Capture the response and post to Slack:

{{steps['<anthropic-step-id>'].output.body.content[0].text}}

Recipe 2 — Post-session summary (Claude Opus)

Use Opus for higher-quality writing on the final recap.

FieldValue
Modelclaude-opus-4-7
PromptWrite a tweet-length summary of the session "{{ctx.session.name}}" (duration {{ctx.session.duration_seconds}}s). Keep it factual.
Max tokens100

Recipe 3 — Q&A classification (Claude Haiku)

Use Haiku for high-volume per-submission analysis — fast, cheap, accurate enough.

FieldValue
Modelclaude-haiku-4-5-20251001
PromptClassify this audience question as one of: technical, opinion, off-topic. Reply with one word.\n\nQuestion: {{ctx.question.text}}
Max tokens5

Branch on the captured classification with flow.branch_if to route between Slack channels.

Troubleshooting

permission_error

The key is scoped to a different organization, or your org admin restricted the key. Check console.anthropic.com/settings/keys and verify the key belongs to the org you intended.

rate_limit_error

Anthropic's per-account rate limit. Stagger calls with flow.wait_ms, or move to a higher tier in the Anthropic Console.

invalid_request_error: max_tokens is required

Unlike OpenAI, Anthropic requires max_tokens on every request. The macro editor surfaces this as a required field, but if you build a step programmatically and skip it, you'll see this error. Set a value (300 is a safe default for chat replies).

"Probe shows skipped (grey) — is something broken?"

No — that's the designed behavior. See Why the test button shows "skipped" above.

Context variables

The prompt field supports {{ctx.*}} interpolation — Tevyr resolves placeholders at fire time. See the full context-variable reference in the Macros guide. Common ones: {{ctx.event.title}}, {{ctx.session.title}}, {{ctx.session.speaker_name}}, {{ctx.timer.remaining_seconds}}, {{ctx.now.iso}}.

Triggered by webhook events

Anthropic can be fired automatically from any webhook event. When creating a webhook, pick Integration mode and select your Anthropic connection — your prompt receives the event's {{ctx.*}} data at fire time.

  • Macros — chain a Claude response into a downstream Slack/Notion step
  • Integrations overview — other tools you can wire alongside Anthropic
  • OpenAI guide — same recipe shape, routed through GPT
  • Slack guide — paired with Anthropic to post generated content