AI and automation
Build and edit your site with AI: the assistant in the admin, your own AI tools, the API and the command line.
On this page
Lettern is made to work with AI. Ask the assistant in the admin to build a page, connect Claude or ChatGPT to your site, or let a script publish for you. Each of them can do only what the person behind it is allowed to, and every change is logged.
Behind every button in the admin is a named action, called an ability: create a page, upload an image, publish. The assistant, your AI tools, the API and the command line use exactly the same abilities. So whichever way a change comes in, it gets the same checks, the same permissions and the same entry in the audit log.
Start with the assistant: it answers in the workspace, one press of ⌘J away.
#For developers
Every way in validates input against the ability's schema, checks the same permissions and writes to the same audit log. They differ in how they sign in:
| Way in | Signs in with |
|---|---|
| The admin | A session, CSRF-protected |
| Assistant | The person's admin session |
| MCP | OAuth 2.1, or a personal access token |
| REST API | A personal access token |
| Command line | Shell access, with full rights |