App conventions
Build an App around the tasks a person wants to complete. A CMS action should let the user download an article or return its translation without making them assemble the provider’s internal API sequence.
Release checklist
Section titled “Release checklist”- Use clear names, stable identifiers, and accurate input/output types.
- Return complete results and empty collections instead of null collections.
- Keep credentials private and validate connections with a small read request.
- Handle pagination and provider rate limits in the App.
- Keep content files interoperable and preserve their identity and context.
- Make events useful as both triggers and task-specific Checkpoints.
- Compile, test, and document the actions and events before uploading.
Types and names
Section titled “Types and names”Represent IDs as strings, dates as DateTime, files as FileReference, and choices as appropriately typed values. Convert provider representations at the boundary. An identifier is not a number for arithmetic, even if the provider serializes it as one.
Use sentence case for display names, with product names and abbreviations capitalized: Download article, Article ID, Target language, Lake ID. Include the entity in an identifier’s label rather than using ID alone. Keep names short enough to scan in the Bird editor and put longer instructions in descriptions.
Return an empty collection when there are no results. Make optional inputs nullable and handle their omitted values. Keep published method names, connection keys, and model properties stable; treat changes as a compatibility decision.
Connections and errors
Section titled “Connections and errors”Offer OAuth when the provider supports a suitable flow, and minimize the credentials a user must enter. Give fields clear names and mark secrets as sensitive. Validate the account and permissions using the least expensive suitable request.
Classify user-fixable problems as configuration errors and provider service failures as App-not-responding errors. Give an actionable next step. See Errors for a complete example. Use cancellation-aware, bounded retries for provider rate limits, honoring retry headers where supplied. Avoid repeating a write after an uncertain result without checking whether it already succeeded.
Data sources
Section titled “Data sources”Use dropdowns for meaningful fixed choices or provider IDs. For dynamic sources, apply the user’s search at the provider where possible and keep the result small and responsive.
Use dependent inputs only when the parent value can be known while the Bird is being configured. For example, an article picker can depend on a selected site, while a target-language picker should not require an article ID that will arrive only from a future trigger. See Data sources for a compilable example.
Actions
Section titled “Actions”Expose complete tasks rather than one action for every low-level API endpoint. If downloading an article requires fetching its fields and linked content, combine the required requests in the download action and leave the provider in a valid state.
| Verb | Convention |
|---|---|
| Create | Accept required values and useful optional fields; return the created identity |
| Get | Accept an entity ID and return its complete useful details |
| Update | Accept an ID and update the optional fields the user supplied |
| Delete | Accept an ID and delete the intended entity |
| Search | Return matching entities, with useful filters and handled pagination |
| Find | Return one matching entity when the task expects a single result |
Search actions should include useful date ranges for initial imports and ongoing processing. Handle pagination in the implementation rather than asking the Bird builder to assemble page loops. For very large result sets, design an explicit bounded or asynchronous task that respects action limits.
Content, context, and files
Section titled “Content, context, and files”For CMS translation, provide a matching download/upload pair. Keep the content identity, language variants, field references, and reconstruction information with the file so processing can return the result to the owning system.
Design the handoff for Prepare ? process ? upload ? Store. Support finalized units appropriately, retain supplied context and provenance, and document which context your processing action actually consumes. Lake termbases supply terminology; a provider-specific glossary input may need an explicit handoff.
Use file references when a provider can consume a URL. Otherwise use streams and dispose them after I/O. For entities with multiple attachments, provide useful multi-file actions so users do not need a loop just to transfer a batch. Keep action memory, file retention, and ZIP limits separate.
Events and Checkpoints
Section titled “Events and Checkpoints”Name events On ?, such as On article published or On content updated. Return enough article details for the next action, rather than forcing every Bird to begin with a Get request.
Add optional filters for common cases, such as a target language or status. Include an optional content or task ID when the event can resume a Checkpoint. Apply the same filters when checking an already-completed object after subscription.
Use polling when the provider has no suitable webhook. Prefer a timestamp or cursor query over retrieving every item at every poll. Account for timestamp ties, paging, and repeated delivery. Callback events need manual URL registration; explain that setup when they are the appropriate mechanism. See Events for complete callback and polling examples.
Documentation and tests
Section titled “Documentation and tests”Document prerequisites, connection setup, action and event groups, useful optional settings, and a Bird example. Name known unsupported cases directly. Explain how content is downloaded and returned, what context is used, and how to recover from common errors.
Use local tests for input/output behavior and isolated provider fixtures for authentication, pagination, rate limits, and write behavior. Compile all documented examples against the declared SDK version. Then test discovery and execution in one Bird before wider use.