Scope and Research
Chapter 2 gave you one working component. Turning it into the connector you need takes the agent minutes; the quality of the result is decided by what you say first.
What the agent needs from you
Four things:
Which operations, named in your own words — not "the events API" but list the events of an organization, get a single event by id, create a new event.
Which triggers, and what should make them fire.
The documentation URL.
Rate limits, if you know them. If you do not, say so; a limit tighter than the service's own is worse than none.
A brief that works:
Add these components: list the events of an organization, with an option to filter them by status, get a single event by id, create a new event, and a trigger that fires when a new event shows up. In the inspector I want to pick the organization from a dropdown, and wherever an event is needed I want to pick it from a dropdown too — but it should only offer events from the organization I selected. Also add the MakeApiCall component.
Compare "Add support for events." Both are short, but the first names the operations, separates actions from a trigger, answers the validator's MakeApiCall rule from chapter 2, and — most usefully — says what the inspector should feel like. Everything the second leaves out is a guess you find out about in chapter 5.
What to check in the result
The agent turns a brief like that into decisions nobody wrote down. Expect, and check:
One output schema, shared. Components that emit the same object should take its shape from one place (such as
lib.js), so they cannot drift apart.List becomes Find when it filters. A component with a filter and a not found output must be named
Find…; the validator rulefind-naming-by-shapeenforces it.A polling trigger skips the back catalogue. Its first check should only record what already exists.
Dropdowns cache their results, so opening an inspector does not send a burst of requests.
MakeApiCallsends the token only to the service's API host.
And one the agent can get wrong. "Only offer events from the organization I selected" means the event dropdown calls the list component with the chosen organization — and with none until one is picked. So that input must not be required in the schema: the engine validates required inputs before the behaviour runs, which turns an empty dropdown into a validation error. Assert it inside the behaviour instead. Nothing in chapter 5's first two layers notices when this is wrong; only the third does.
Naming, and the decision hiding inside it
Component names mirror the directory layout:
<vendor> is yours. appmixer is only the scaffolder's default. If your company is acme, your components are acme.eventbrite.core.FindEvents. Check what you may publish under:
and have the agent rename the connector now if they differ. Renaming after publishing renames every component and leaves the old ones on the instance.
Declare the output properly
Every output port gets typed fields with example values. It is the highest-leverage paperwork in the guide:
the Designer's variable picker shows your users something meaningful;
appmixer connector verifycan compare what you declared with what the API returns (chapter 5);E2E flows can map variables between components without running them first.
Give it the real icon
The scaffold's icon — in service.json and in every component.json — is a placeholder. Supplying the real one is your job: services rarely publish an SVG mark an agent can fetch cleanly, and whether you may use a company's logo is a question for its brand guidelines. The validator's component-icon-svg rule checks the format, not the rights.
Do it before the first publish. Changing the icon later is a change to every component, and each then needs a version bump (Shipping Changes).
Verify
This is offline: it checks the shape of your source and makes no API calls. It will pass a connector that describes a completely different API — which is why chapter 5 exists.
A typical result:
Eventbrite has no OAuth scopes, so this warning is read and set aside.
Exit
0means clean or within thresholds;1means a regression or a strict failure.--jsongives the report as data;--show-warningsprints every warning.The ratchet: validators listed in the thresholds file fail only when their count rises above the recorded threshold. A new connector has nothing to ratchet, so treat any failure as a failure.
The exit condition is a clean run with every warning read. The agent will offer to test the new components straight away; saying yes is fine — Testing in Three Layers explains what those tests prove.
Next: On the Instance.
Last updated
Was this helpful?
