Synthèse automatique
Un exemple minimal de bout en bout qui envoie des enregistrements dans une table Clay via webhook et vérifie que les colonnes d'enrichissement se remplissent.
Points forts
- Fournit des extraits prêts à copier en curl, Node.js et Python pour l'envoi de leads
- Couvre l'envoi unitaire et l'envoi par lot en boucle sur plusieurs domaines
- Inclut un tableau des erreurs webhook courantes (404, 422, absence d'enrichissement) avec pistes de résolution
Limites
- La création du workbook, de la source webhook et de la colonne d'enrichissement reste manuelle dans l'interface Clay et n'est pas automatisée
- Ne montre pas comment récupérer les données enrichies par API : la vérification se fait dans l'interface Clay
- Suppose que l'installation et l'authentification Clay (clay-install-auth) sont déjà en place
À utiliser au démarrage d'une intégration Clay ou pour valider rapidement qu'un webhook et une colonne d'enrichissement fonctionnent de bout en bout.
À éviter pour un pipeline de production à grande échelle ou pour lire les résultats enrichis par programmation, car le skill s'arrête au premier enregistrement de test.
Analyse de sécurité
PrudenceThe skill is benign and clearly scoped to sending test records to a Clay webhook. It does not include destructive commands, obfuscation, credential exfiltration, or safety-disabling instructions. The main risk is expected third-party data transfer and network use, so it warrants caution rather than safe.
- •Sends user-supplied lead data (email, name, domain) to an external Clay webhook; users should avoid real PII/secrets unless intended and compliant.
- •Uses network-capable tools (curl/node) and a configurable webhook URL via CLAY_WEBHOOK_URL; if that variable is compromised, data could be sent to an unintended endpoint.
- •Bash examples include a hard-coded placeholder webhook URL, which may encourage users to paste real webhook URLs into scripts/files.
Exemples
Set up the Clay hello world: POST {"domain": "openai.com"} to my Clay webhook URL and tell me whether the company_name, employee_count and industry columns fill in.Send stripe.com, notion.so, figma.com and linear.app to my Clay webhook in a loop and report any non-2xx responses.Write a Node.js script that sends a test lead (jane@stripe.com, domain stripe.com) to my Clay webhook and throws a clear error if the request fails.name: clay-hello-world description: 'Send your first record to Clay and get enriched data back.
Use when starting a new Clay integration, testing webhook setup,
or verifying that enrichment columns are working.
Trigger with phrases like "clay hello world", "clay example",
"clay quick start", "first clay enrichment", "test clay webhook".
' allowed-tools: Read, Write, Edit, Bash(curl:), Bash(node:) version: 1.14.0 license: MIT author: Jeremy Longshore jeremy@intentsolutions.io tags:
- saas
- clay
- api
- testing compatibility: Designed for Claude Code, also compatible with Codex and OpenClaw
Clay Hello World
Overview
Minimal working example: send a company domain to a Clay table via webhook, let Clay's enrichment columns fill in company data, and retrieve the enriched result. Clay does not have a traditional SDK — you interact with it via webhooks (data in), HTTP API columns (data out), and the web UI.
Prerequisites
- Completed
clay-install-authsetup - Clay workbook with a webhook source configured
- At least one enrichment column added to the table
Instructions
Step 1: Create a Clay Table with Enrichment
In the Clay web UI:
- Create a new workbook
- Add columns:
domain,company_name,employee_count,industry - Click + Add at bottom, select Webhooks > Monitor webhook
- Copy the webhook URL
- Add an enrichment column: + Add Column > Enrich Company (uses the
domaincolumn as input)
Step 2: Send Your First Record via Webhook
# Send a single company domain to your Clay table
curl -X POST "https://app.clay.com/api/v1/webhooks/YOUR_WEBHOOK_ID" \
-H "Content-Type: application/json" \
-d '{"domain": "openai.com"}'
Within seconds, Clay creates a new row and auto-runs the enrichment column. The company_name, employee_count, and industry columns fill in automatically.
Step 3: Send Multiple Records
# Batch send — each object becomes a row
for domain in stripe.com notion.so figma.com linear.app; do
curl -s -X POST "https://app.clay.com/api/v1/webhooks/YOUR_WEBHOOK_ID" \
-H "Content-Type: application/json" \
-d "{\"domain\": \"$domain\"}"
echo " -> Sent $domain"
done
Step 4: Send from Node.js
// hello-clay.ts — send records to Clay via webhook
const CLAY_WEBHOOK_URL = process.env.CLAY_WEBHOOK_URL!;
interface LeadInput {
email?: string;
domain?: string;
first_name?: string;
last_name?: string;
linkedin_url?: string;
}
async function sendToClay(lead: LeadInput): Promise<Response> {
const response = await fetch(CLAY_WEBHOOK_URL, {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify(lead),
});
if (!response.ok) {
throw new Error(`Clay webhook failed: ${response.status} ${response.statusText}`);
}
return response;
}
// Send a test lead
await sendToClay({
email: 'jane@stripe.com',
first_name: 'Jane',
last_name: 'Doe',
domain: 'stripe.com',
});
console.log('Record sent to Clay — check your table for enriched data.');
Step 5: Send from Python
import requests
import os
CLAY_WEBHOOK_URL = os.environ["CLAY_WEBHOOK_URL"]
def send_to_clay(lead: dict) -> requests.Response:
"""Send a lead record to a Clay table via webhook."""
response = requests.post(
CLAY_WEBHOOK_URL,
json=lead,
headers={"Content-Type": "application/json"},
)
response.raise_for_status()
return response
# Test it
send_to_clay({
"email": "jane@stripe.com",
"first_name": "Jane",
"last_name": "Doe",
"domain": "stripe.com",
})
print("Record sent to Clay — check your table for enriched data.")
Error Handling
| Error | Cause | Solution |
|-------|-------|----------|
| 404 Not Found | Invalid webhook URL | Re-copy URL from Clay table settings |
| 422 Unprocessable | Invalid JSON payload | Validate JSON structure before sending |
| Row appears but no enrichment | Enrichment column not configured | Add enrichment column in Clay UI, enable auto-run |
| 429 Too Many Requests | Exceeded webhook rate limit | Add 100ms delay between requests |
| Webhook limit reached (50K) | Webhook exhausted | Create a new webhook source on the table |
Output
- New row(s) visible in your Clay table
- Enrichment columns auto-populated with company/person data
- Console confirmation of successful webhook delivery
Resources
- Clay University — Webhook Integration Guide
- Clay University — Using Clay as an API
Next Steps
Proceed to clay-local-dev-loop for iterating on enrichment workflows locally.
Du fichier au premier essai
Le téléchargement contient exactement le contenu affiché sur cette fiche. Cette copie peut différer de la dernière version du dépôt source.
Consulter la source et ses fichiers annexesCe téléchargement contient uniquement SKILL.md. Les scripts, références, modèles et dépendances éventuels ne sont pas inclus. Récupérez les fichiers nécessaires depuis la source en conservant leur arborescence avant de poursuivre.
1. Télécharger le fichier
Télécharger SKILL.mdDepuis la racine d’un projet de test, enregistrez le fichier sous .skill-downloads/clay-hello-world-mrx3xzb1/SKILL.md, ou utilisez la commande suivante. Ce dossier sert à examiner la skill avant son installation.
Commande pour macOS/Linux ou WSL : un shell POSIX et curl sont nécessaires. Sous Windows sans WSL, utilisez le bouton de téléchargement et créez le dossier manuellement.
mkdir -p '.skill-downloads/clay-hello-world-mrx3xzb1' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/clay-hello-world-mrx3xzb1/download' --output '.skill-downloads/clay-hello-world-mrx3xzb1/SKILL.md.part' && mv '.skill-downloads/clay-hello-world-mrx3xzb1/SKILL.md.part' '.skill-downloads/clay-hello-world-mrx3xzb1/SKILL.md'2. Vérifier les prérequis
Lisez SKILL.md avant de l’utiliser. Si le fichier cite des scripts ou services externes, examinez-les et préparez les accès nécessaires dans votre environnement de test.
Environnement déclaré par l’auteur : Designed for Claude Code, also compatible with Codex and OpenClaw
Outils déclarés par l’auteur (à vérifier dans votre agent) : Read, Write, Edit, Bash(curl:*), Bash(node:*)
Extrait original : Prerequisites
- Completed
clay-install-authsetup - Clay workbook with a webhook source configured
- At least one enrichment column added to the table
Les plateformes de la fiche sont des indications du catalogue. Les chemins ci-dessous suivent la documentation des outils ; ils ne prouvent pas que cette skill y a été exécutée. Aucune version minimale de ces outils n’est attestée pour cette fiche.
3. Charger la skill
Après vérification, copiez le dossier complet dans le projet avec l’une des commandes ci-dessous, puis ouvrez une nouvelle session de l’outil. La commande s’arrête si un dossier du même nom existe déjà : comparez les fichiers avant de le remplacer.
Claude Code
test -f '.skill-downloads/clay-hello-world-mrx3xzb1/SKILL.md' && test -s '.skill-downloads/clay-hello-world-mrx3xzb1/SKILL.md' && mkdir -p '.claude/skills' && test ! -e '.claude/skills/clay-hello-world' && cp -R '.skill-downloads/clay-hello-world-mrx3xzb1' '.claude/skills/clay-hello-world'Codex
test -f '.skill-downloads/clay-hello-world-mrx3xzb1/SKILL.md' && test -s '.skill-downloads/clay-hello-world-mrx3xzb1/SKILL.md' && mkdir -p '.agents/skills' && test ! -e '.agents/skills/clay-hello-world' && cp -R '.skill-downloads/clay-hello-world-mrx3xzb1' '.agents/skills/clay-hello-world'OpenSkills
OpenSkills doit déjà être installé. La procédure locale install/read est contrôlée avec OpenSkills 1.5.0, qui exige Node.js ≥ 20.6.0. Aucun slug du catalogue n’est résolu automatiquement.
Installation officielle d’OpenSkillsopenskills install './.skill-downloads/clay-hello-world-mrx3xzb1'openskills read 'clay-hello-world-mrx3xzb1'La lecture doit afficher le contenu du fichier installé et son dossier de base. Elle ne lance ni la skill ni ses dépendances.
Pour un agent qui lit AGENTS.md, synchronisez ensuite l’index. Cette commande modifie AGENTS.md : relisez le diff avant de l’utiliser.
openskills syncMode manuel ou autre outil : joignez SKILL.md à une conversation, ou ouvrez-le dans un agent capable de lire les fichiers. Ajoutez les ressources annexes nécessaires. Il n’existe pas de dossier universel reconnu par tous les outils.
4. Faire un premier essai
Utilisez une entrée courte et fictive : un endpoint d’API, un petit document ou un brief d’interface. Dans une nouvelle conversation, joignez le fichier ou donnez son chemin à l’agent, puis adaptez cette demande :
Lis .skill-downloads/clay-hello-world-mrx3xzb1/SKILL.md et applique ses instructions à cet exemple : [décrire une entrée de test]. Indique les fichiers, dépendances ou accès qui manquent. Produis le résultat demandé par la skill sans inventer de données ni exécuter de script non examiné.Résultat attendu : une sortie correspondant aux instructions de la skill, ou une liste précise des prérequis manquants. Une simple confirmation de lecture ne valide pas le premier usage. Si une ressource externe est indisponible, ce parcours reste à tester.
Bonnes pratiques React Hook Form
Developpement
Maîtrisez React Hook Form : évitez les anti-patterns, gérez les abonnements, et traitez correctement reset, dirty state et entrées contrôlées.
Migration Emotion vers Mantine
Developpement
Migrer les styled-components Emotion vers des composants Mantine avec style props et modules CSS. Pour convertir .styled.tsx ou supprimer les imports @emotion.
Détecteur de dérive de périmètre
Developpement
Analyse les diffs git par rapport à une intention pour détecter la dérive de périmètre, fichiers non liés et PR trop larges, puis suggère de garder, diviser ou justifier.