Enterprise resource planning integrations. All four production skills in this sub-domain follow the same shape โ authenticate, introspect, query, write, webhook โ wired so AI agents can act on orders, invoices, and stock without a human in the loop. 2nth is middleware, not the system of record: read from the ERP, enrich with AI, write results back.
Each card is a full production skill in the canonical 2nth-ai/skills repo โ with working code, rate limits, and the gotchas that only show up in real deployments. Click any to drill in.
Mid-market ERP (formerly Sage Enterprise Management) exposed via a GraphQL API through the Syracuse web server. Relay cursor pagination, OData-style filters, master data through sales, purchasing, stock, and accounting.
Open-source ERP on the Frappe framework. REST API for every doctype plus RPC for server-side methods. Manufacturing-strong โ BOMs, work orders, job cards, stock entries โ backing real factories today.
Hosted e-commerce with two APIs: Admin (REST + GraphQL) for store management, Storefront (GraphQL) for headless customer experiences. The skill codifies six AI roles โ owner, merchandiser, content, support, marketing, ops โ and their tool sets.
The world's most widely deployed e-commerce platform โ WordPress-based. REST API v3 for products, orders, customers, stock, coupons, reports. Basic Auth with Consumer Key + Secret; HMAC-signed webhooks.
All four follow the same high-level pattern, but the shapes differ. Use this to match your workload to the integration that actually fits.
| Skill | API style | Auth | Strongest for | Rate limits |
|---|---|---|---|---|
| Sage X3 | GraphQL (Relay) | HTTP Basic over HTTPS | Mid-market ERP with complex master data, multi-site stock, SA financial filings | Installation-dependent ยท introspect first |
| ERPNext | REST + RPC | API Key + Secret (or Basic) | Discrete manufacturing, BOM-driven production, factories needing open-source cost base | ~5 req/sec default |
| Shopify | Admin REST + GraphQL, Storefront GraphQL | Access tokens (Admin + Storefront) | Direct-to-consumer retail, headless commerce, role-driven AI assistance | 2โ20 req/sec REST ยท 50โ1000 pts/sec GraphQL |
| WooCommerce | REST v3 | Consumer Key + Secret (Basic) | WordPress-hosted stores, long-tail retailers, full control over customisation | Plugin-dependent ยท host-bound |
It's not an accident that the four skills feel the same once you open the hood. They're all built on a deliberate 2nth pattern: middleware between the ERP and the AI agents using it.
| Step | What it does | Canonical principle |
|---|---|---|
| 1 ยท Authenticate | Token, key, or OAuth โ never hardcoded. Secrets in env vars or wrangler secret. |
Credentials live outside the code path |
| 2 ยท Introspect | Discover the real schema โ custom fields, plugin doctypes, installation-specific quirks. | Schemas vary by installation ยท never assume |
| 3 ยท Query | Paginate everything. Filter server-side. Never load a full table without cursors. | Pagination is required ยท defaults will lie |
| 4 ยท Write | Idempotent mutations โ upsert by natural key, not by surrogate ID. | 2nth is middleware, not SOR ยท the ERP owns truth |
| 5 ยท Webhook | Verify signatures. Handle retries. Treat late events as normal, not exceptional. | Real-time is eventual consistency in a hurry |
ERPs don't run alone. Every skill in this sub-domain requires at least one skill from tech for the runtime, and feeds into fin/reporting for the numbers that get shown to humans.