Skip to content

codegen · multi-lang snippets

Generate the incorporate() snippet
in your language.

Fill in your sociedad-IA's details, get equivalent code in 6 languages. Copy, paste, run. The form fields mirror POST /api/auto-incorporate's input schema. Everything happens client-side — no data leaves your browser until you actually run the snippet.

3-200 chars. IGJ rejects reserved words (Nacional, Estatal, etc).
SOCIEDAD-IA gated by AR regime; currently uses SAS template.
SAS/SRL: ≥ 100K. SOCIEDAD-IA: ≥ 1.
20-2000 chars. IGJ rejects generic phrasing.
Optional. Used by the platform for human-touch escalations.
Optional pre-launch. Required at IGJ submission.
11 digits. Validated by the server too.
snippet
import { incorporate } from "@ar-agents/incorporate";

const result = await incorporate({
  denominacion: "ACME-AI SAS",
  tipo: "SOCIEDAD-IA",
  capitalSocial: 1,
  objeto: "Operación de servicios digitales y desarrollo de software propio para clientes argentinos.",
  emailContacto: "ops@acme-ai.example",
  representante: {
    nombre: "Pérez, Juan",
    cuit: "20-12345678-9",
  },
});

if (!result.ok) {
  for (const f of result.validation.findings) {
    console.error(`[${f.severity}] ${f.field}: ${f.message}`);
  }
  process.exit(1);
}

console.log("Slug:        ", result.sociedad.slug);
console.log("Deploy URL:  ", result.deploy.oneClickUrl);
console.log("Audit log:   ", result.audit.dashboardUrl);
console.log("HMAC:        ", result.audit.entry.hmac);
What this generates: a single-shot POST to /api/auto-incorporate with the form fields as the body. The response includes the generated source files, env-var manifest, deploy URL, and audit log reference — see /sdk for the result schema and /api/auto-incorporate for the endpoint's self-description.
Multi-step orchestration: Pass a stable sessionId (UUID v4) across multiple calls to chain them under one forensic timeline. The TypeScript + Python snippets cover this in their full README forms.
Privacy:every field stays in your browser until you hit run. The page doesn't POST anywhere or telemetry-log the inputs.