Connect an agent to the right app and scope.
Give the agent two references, its own credential and only the access the task needs. Then start with a read.
Give it two references.
Start with the platform reference for authentication and the services, then the agent guide of the app it will work on, which describes the app’s tables and workflows. Agents can install the builder skills with the command in the platform reference; review any installer before running it.
The public website and the authenticated API are different origins. Use the API origin named in the current reference for every call.
Give it its own credential.
Sign in to the organization the agent will work in and create an API key for the agent alone. Requests send it in an Authorization: Bearer header. Keep the key in the agent’s local secret configuration.
Never put a key in a public page, a shared document, a workflow definition, a repository or a support message. Assign the agent a role with only the tables and operations its task needs.
Find the installed app first.
Use authenticated app discovery to find the app in your organization and use its real ID. A catalogue slug such as crm-for-b2b names a public page; it is not your organization’s app ID.
Have the agent read the app schema before creating or changing records, so it works with the tables, fields and relationships your installation actually has.
Read first, then one controlled change.
Ask for a small read with a known answer and check the result. When the task needs writes, change one non-sensitive test record, confirm it in the web app, and add the approval step your policy requires before widening the scope.