Anthropic

Stable

Bring your Anthropic key and power your WhatsApp agent with Claude models

AI & ML

What is Anthropic?

Anthropic builds the Claude family of large language models — Claude Opus, Sonnet, and Haiku — known for strong reasoning, long context, and reliable tool use. The LunoGen Anthropic integration lets you bring your own Anthropic API key and power your agent with Claude models. You can pick different models for different tasks, enable prompt caching to cut costs, use the Messages API for structured tool calls, and run vision tasks on images sent in WhatsApp.

Why connect Anthropic?

Many teams prefer Claude for long-form reasoning, agentic tool use, and safer default behavior. Anthropic also has a strong prompt caching feature that can cut repeated-context costs by 90%. Bringing your own Anthropic key gives you billing control, access to the latest Claude models, and the option to route heavy tasks to Opus and fast replies to Haiku — while LunoGen handles the plumbing.

What you can do

  • Bring your own Anthropic key for the agent's reasoning
  • Per-task routing between Claude Opus, Sonnet, and Haiku
  • Prompt caching for repeated-context cost savings
  • Messages API integration with tool use
  • Vision tasks on images sent in WhatsApp
  • Long-context handling (up to 1M tokens)
  • Daily and monthly cost tracking
  • Model fallback to another provider on outage
  • Per-contact model selection for cost control
  • Token usage breakdown by task and model

Setup

Requirements

  • An Anthropic account with API access
  • A valid Anthropic API key with billing enabled
  • A LunoGen account with the Pro plan or above
  1. 1

    Create an Anthropic API key

    In the Anthropic console, go to Settings → API Keys → Create Key. Name it 'LunoGen Agent' and copy the key.

  2. 2

    Add the credential in LunoGen

    In LunoGen, open Credentials → New → Anthropic and paste your API key. Optionally add your workspace ID.

  3. 3

    Pick your default Claude models

    Choose a reasoning model (Claude Opus recommended) and a fast model (Claude Haiku recommended). Sonnet is a good middle ground.

  4. 4

    Enable prompt caching

    Turn on prompt caching. LunoGen automatically caches long system prompts and recent memory so repeated calls pay only for the delta.

  5. 5

    Set budget guardrails

    Configure daily and monthly spend caps. LunoGen will pause new Claude calls and ping you on WhatsApp if a cap is reached.

Anthropic use cases

6 total

Claude Opus for Complex Reasoning

Route your hardest tasks — deep research, multi-step tool use, long planning — to Claude Opus. The agent detects complexity and automatically uses Opus when the prompt needs it.

WhatsApp DMopusreasoningrouting

I need you to plan the Q2 launch campaign end to end. Pull market data, draft the email series, pick a launch date, and write the press release.

http_request → Anthropic Messages API (claude-opus)

This is a multi-step planning task. Routing to Claude Opus with tool use...

See full conversation

Related integrations

Ready to connect Anthropic?

Spin up an AI agent in under 2 minutes, plug in your Anthropic credentials, and start running your workflows from WhatsApp.