clade-webhooks-events

Featured

Use Anthropic Message Batches for async bulk processing and event handling. Use when working with webhooks-events patterns. Trigger with "anthropic batches", "claude batch api", "anthropic async", "bulk claude processing", "anthropic webhook".

AI & Automation 2,266 stars 315 forks Updated today MIT

Install

View on GitHub

Quality Score: 99/100

Stars 20%
100
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Anthropic Message Batches & Async Processing ## Overview Anthropic doesn't have traditional webhooks. Instead, use **Message Batches** for async bulk processing — up to 10,000 requests per batch at 50% off, with a 24-hour processing SLA. ## Prerequisites - Completed `clade-install-auth` - Multiple prompts/documents to process in bulk - Tolerance for async processing (results within 24 hours) ## Instructions ### Step 1: Create a Batch ```typescript import Anthropic from '@claude-ai/sdk'; const client = new Anthropic(); const batch = await client.messages.batches.create({ requests: documents.map((doc, i) => ({ custom_id: `doc-${i}`, params: { model: 'claude-sonnet-4-20250514', max_tokens: 1024, messages: [{ role: 'user', content: `Summarize: ${doc.text}` }], }, })), }); console.log(`Batch ${batch.id} created — ${batch.request_counts.processing} processing`); ``` ### Step 2: Poll for Completion ```typescript async function waitForBatch(batchId: string): Promise<Anthropic.Messages.MessageBatch> { while (true) { const batch = await client.messages.batches.retrieve(batchId); if (batch.processing_status === 'ended') { console.log(`Batch complete: Succeeded: ${batch.request_counts.succeeded} Errored: ${batch.request_counts.errored} Expired: ${batch.request_counts.expired}`); return batch; } console.log(`Processing... ${batch.request_counts.processing} remaining`); await new Promise...

Details

Author
jeremylongshore
Repository
jeremylongshore/claude-code-plugins-plus-skills
Created
7 months ago
Last Updated
today
Language
Python
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category

AI & Automation Featured

anth-webhooks-events

Implement event-driven patterns with Claude API: streaming SSE events, Message Batches callbacks, and async processing architectures. Use when building real-time Claude integrations or processing batch results. Trigger with phrases like "anthropic events", "claude streaming events", "anthropic async processing", "claude batch callbacks".

2,266 Updated today
jeremylongshore
AI & Automation Featured

anth-core-workflow-b

Build Claude streaming and Message Batches API workflows. Use when implementing real-time streaming responses, SSE event handling, or processing bulk requests with the 50% cheaper Batches API. Trigger with phrases like "claude streaming", "anthropic batch", "message batches api", "SSE events anthropic", "stream claude response".

2,266 Updated today
jeremylongshore
AI & Automation Featured

processing-api-batches

Optimize bulk API requests with batching, throttling, and parallel execution. Use when processing bulk API operations efficiently. Trigger with phrases like "process bulk requests", "batch API calls", or "handle batch operations".

2,266 Updated today
jeremylongshore
AI & Automation Featured

apollo-webhooks-events

Implement Apollo.io webhook and event-driven integrations. Use when receiving Apollo notifications, syncing data on changes, or building event-driven pipelines from Apollo activity. Trigger with phrases like "apollo webhooks", "apollo events", "apollo notifications", "apollo webhook handler", "apollo triggers".

2,266 Updated today
jeremylongshore
AI & Automation Featured

groq-webhooks-events

Build event-driven architectures with Groq streaming, batch processing, and async patterns. Use when setting up real-time SSE endpoints, batch processing pipelines, or event-driven LLM processing with Groq. Trigger with phrases like "groq streaming", "groq events", "groq SSE", "groq batch", "groq async", "groq event-driven".

2,266 Updated today
jeremylongshore