Prompt
I'm building a replacement for brittle scripts, what automation API should I use?
Latest observation
Oct 24, 2026
OpenAI APIWeb search: off
It depends on what kind of automation you mean, but if you’re replacing brittle scripts, the safest default is usually:
Use the official API of the system you’re automating, if one exists.
Prefer:
- Public REST/GraphQL APIs
- Official SDKs / client libraries
- Event/webhook-driven integrations
- CLI tools with stable machine-readable output as a fallback
Why this is better than scripts/UI scraping
- Less likely to break when the UI changes
- Better authentication and permission controls
- More reliable error handling
- Easier to test, version, and monitor
Good rule of thumb
- Automating a SaaS/product? Use its official API
- Automating internal systems? Expose a service API rather than screen automation
- Automating desktop apps? Use accessibility APIs or vendor automation APIs, not image matching
- Need browser automation? Use Playwright/Selenium only when no API exists
If you want a modern “replacement for brittle scripts” architecture
Consider:
- A small workflow service
- Typed API clients
- Retries/backoff/idempotency keys
- Structured logs and observability
- Queue-based async jobs for long-running tasks
If you mean a specific platform
Tell me:
- what you’re automating,
- whether it’s web, desktop, or cloud,
- and what language you’re using,
and I can recommend the exact API/framework.