Automation & AI Platforms

Building AI automations with the Claude API

The short answer

The Claude API gives programmatic access to Anthropic's Claude models, currently Haiku 5.5, Sonnet 5.5, Opus 5.5 and Fable 5.1 as the top tier, with context windows up to 1M tokens, tool use with strict schemas, structured outputs, prompt caching, batch processing, PDF and image input, and server tools for web search and code execution. API data is not used for training by default. It is especially strong for long documents, careful writing and long-running agents, and it runs on Amazon Bedrock, Google Cloud and Microsoft Foundry as well as Anthropic's platform.

What you can automate with Claude API

Contract review

Read full agreements, compare clauses with your playbook and return a redline summary with citations to the source text.

Read the build guide
RFP responses

Draft answers to long questionnaires from your past responses and product documentation, with sources for reviewers.

Read the build guide
Support reply drafting

Draft accurate, on-tone replies grounded in your help center and the customer's history for an agent to approve.

Read the build guide
RAG knowledge assistant

Answer staff questions over policies and manuals, using prompt caching to keep repeated context fast and cheaper.

Read the build guide
Natural-language SQL reporting

Let managers ask questions in plain English and get answers from read-only SQL that Claude writes and your code checks.

Read the build guide
Legal research summaries

Summarize long cases, filings and memos into briefs that cite the exact passages they rely on.

Read the build guide

What the Claude API is good for

Everything goes through one endpoint, the Messages API. You send instructions, conversation history, documents, images and tool definitions, and Claude replies with text, structured output or tool calls. Tools marked strict always get arguments that match their schema, and structured outputs return JSON that matches the schema you supply.

The features that matter most for business automation:

  • Long context. Current models accept up to 1M tokens, enough for full contracts, policy manuals or a large codebase in a single request.
  • Prompt caching. Stable context, such as a system prompt, tool list or reference document, is cached and reused across calls, which cuts cost and latency for assistants that send the same material repeatedly.
  • Documents and citations. PDFs and images go in directly, and citations tie each statement in an answer to the passage it came from.
  • Batches. The Message Batches API processes large jobs asynchronously at a discount.
  • Server tools and MCP. Web search, web fetch and code execution run on Anthropic’s side, and the MCP connector lets Claude call remote MCP servers.
  • Effort control. Current models think before they answer, and an effort setting trades depth of reasoning against speed and token use per request.

For agents, there are three levels: your own loop over the Messages API, the Claude Agent SDK for a full harness on your infrastructure, and Managed Agents (in beta), where Anthropic runs the loop and a sandbox for you.

How Lumeor uses it

We use the Claude API for steps where reading and judgment matter: contract and document review, drafting replies customers will read, RFP answers and agents that run many tool calls. In n8n we call it through the Anthropic nodes or an HTTP step with a strict schema; in code we use the official SDK with prompt caching on every stable prefix and logging on every call.

We pick the model per step and test it on the client’s real examples. A triage step might run on Claude Haiku 5.5 while the drafting step runs on Claude Sonnet 5.5. See the RFP response guide for a typical design.

Limits to plan around

  • Rate limits by tier. Requests and tokens per minute depend on the model and your usage tier. Request increases before a launch, not during it.
  • Platform differences. Bedrock, Vertex AI and Foundry carry Claude models but may lag on betas and server tools. Check before committing to a platform.
  • Cache discipline. Caching only works if the cached prefix is byte-for-byte identical. Timestamps or reordered tools in the system prompt quietly disable it.
  • Long runs take time. Hard agent tasks on the largest models can run for minutes. Use streaming, timeouts and progress updates in your interface.
  • Model updates. New models change behavior and some request parameters. Pin model IDs and re-run your evaluation set before upgrading.

When to pick something else

Frequently asked questions

Which Claude model should we use for automation?

Start with Claude Sonnet 5.5 for most workflow and agent steps. Use Claude Haiku 5.5 for high-volume classification and extraction where speed and cost matter most, Claude Opus 5.5 for hard reasoning, coding and long agent runs, and Claude Fable 5.1 only for the most demanding work. Test each step on your own examples before choosing.

Is the Claude API the same as a Claude subscription?

No. Claude Pro, Team and Enterprise are apps for people. The API is a developer service billed per token that your software or tools like n8n call. API data is not used to train models by default.

Can we use Claude through AWS or Google Cloud?

Yes. Claude is available on Amazon Bedrock, Google Cloud (Vertex AI, now part of Gemini Enterprise Agent Platform) and Microsoft Foundry, billed through those platforms and governed by your cloud account's identity and network controls. Some newer features reach Anthropic's own API first, so check availability for the features you need.

What is the Claude Agent SDK?

It packages the agent loop behind Claude Code as a Python and TypeScript library, with built-in tools for files, shell commands and web search, plus subagents, hooks and permissions. It suits agents that work through files and multi-step tasks. Simpler agents can use the Messages API with your own tools.

Next steps