home / skills / openclaw / skills / attio

This skill enhances Attio CRM operations with batch processing, robust validation, enrichment, error handling, and task management for large data volumes.

npx playbooks add skill openclaw/skills --skill attio

Review the files below or copy the command above to add this skill to your agents.

Files (3)
SKILL.md
3.1 KB
---
name: attio-generic-enhanced
description: Enhanced Attio CRM integration with batch operations, improved error handling, data validation, enrichment functions, and robust task management. Use when working with large volumes of CRM data, requiring advanced error handling, or needing comprehensive data validation.
---

# Enhanced Attio CRM - Generic Version

Advanced Attio CRM integration with enhanced functionality for general-purpose CRM operations.

## Setup

Set `ATTIO_API_KEY` in environment or `~/.env`:
```bash
echo "ATTIO_API_KEY=your_api_key" >> ~/.env
```

Get your API key: Attio → Workspace Settings → Developers → New Access Token

## Enhanced Features

### 1. Batch Operations for Bulk Imports

```bash
# Import large volumes of records efficiently
attio-enhanced batch import companies data.json

# Process records in configurable chunks
attio-enhanced batch import people data.json --chunk-size 50

# Track progress during bulk operations
attio-enhanced batch import deals data.json --progress
```

### 2. Enhanced Error Handling with Retry Logic

```bash
# Automatic retry on rate limits with exponential backoff
attio-enhanced records create company data.json

# Handle connection failures gracefully
attio-enhanced records update person id data.json

# Comprehensive error reporting
attio-enhanced batch validate data.json
```

### 3. Data Validation for CRM Scenarios

```bash
# Validate data before import
attio-enhanced validate records data.json

# Check required fields and data types
attio-enhanced validate required-fields companies.json

# Custom validation rules
attio-enhanced validate custom-rules people.json
```

### 4. General-Purpose Enrichment Functions

```bash
# Enrich contact data from external sources
attio-enhanced enrich contact person_id

# Augment company information
attio-enhanced enrich company company_id

# Lookup social media profiles
attio-enhanced enrich social company_domain
```

### 5. Robust Task Management

```bash
# Create and track long-running tasks
attio-enhanced tasks create "Process 1000 records" --script process_large_batch.sh

# Monitor task status
attio-enhanced tasks status task_id

# Retrieve task results
attio-enhanced tasks results task_id
```

## Examples

### Bulk Import with Error Handling
```bash
# Import 1000 companies with automatic retry and error isolation
attio-enhanced batch import companies large_dataset.json --chunk-size 50 --retry-attempts 3
```

### Data Validation Before Import
```bash
# Validate your data before import to prevent errors
attio-enhanced validate records prospect_data.json
attio-enhanced batch import people prospect_data.json
```

### Contact Enrichment
```bash
# Enrich existing contacts with additional information
attio-enhanced enrich contact person_record_id
```

## Performance Improvements

- Async/await support for concurrent operations
- Connection pooling with session reuse
- Efficient memory usage during batch processing
- Optimized API calls with proper resource management

## Security Features

- Secure environment variable handling for credentials
- API key protection in headers only
- No hardcoded credentials in code

## Full API Docs

https://docs.attio.com/

Overview

This skill provides an enhanced Attio CRM integration focused on large-volume operations, strong error handling, and comprehensive data validation. It adds batch imports, enrichment utilities, task management, and performance improvements to streamline CRM workflows. Use it to process, validate, and enrich CRM records reliably and at scale.

How this skill works

The skill performs bulk operations by splitting inputs into configurable chunks and running concurrent requests with async support and connection pooling. It validates data against required fields and custom rules, retries transient failures with exponential backoff, and isolates errors per-record to avoid full-job failures. Enrichment functions call external sources to augment contact and company records while task management tracks long-running jobs and persists results.

When to use it

  • Importing or synchronizing thousands of records into Attio
  • Needing resilient retries and isolation for network or rate-limit errors
  • Validating datasets before pushing to the CRM to prevent corruption
  • Enriching contact and company profiles from external sources
  • Orchestrating long-running processes with monitoring and result retrieval

Best practices

  • Validate source files locally with the validate commands before importing
  • Use chunk-size and concurrency options to match API rate limits and local resources
  • Configure retry-attempts and exponential backoff for unstable networks
  • Run enrichment in separate passes after core data import to minimize conflicts
  • Store ATTIO_API_KEY in environment or a secure .env file and never hardcode credentials

Example use cases

  • Batch import 10k contacts using chunking and progress tracking to monitor throughput
  • Preflight validation of leads file to catch missing required fields and type errors
  • Enrich company records with social profiles and third-party metadata after import
  • Run a background task to process and normalize legacy CRM exports, then retrieve results
  • Update large segments of records with isolated error reporting so successful items are retained

FAQ

How does retry logic handle rate limits?

Automatic retries use exponential backoff and configurable retry-attempts to avoid immediate replays; failed batches surface detailed error reports for manual review.

Can I control concurrency and chunk sizes?

Yes. Commands accept chunk-size and concurrency options so you can tune throughput to API limits and local system capacity.