- Démarrer
- Meilleures pratiques
- Capabilities
- Compétences
- CLI
- Exemples
- Vue d’ensemble des exemples
- Formule: créer un agent
- Formule: automatisation avec RPA
- Formule: saisir des données dans une application Web
- Formule: extraire des données d'une application de bureau
- Formule: reformuler et tester un workflow
- Formule: un processus basé sur des files d'attente avec REFramework
- Formule: créer un Maestro Flow
- Recipe: build a Maestro Case
- Formule: application codée et workflow d'API
- Recipe: build a coded function
- Formule: vérifier une version avec Test Manager
- Formule: extraire des données de documents avec IXP
- Avancé
- Aide
Build, test, and publish a coded function that normalizes an order payload, using a coding agent.
This recipe builds a coded function that normalizes an order payload — trimming whitespace, standardizing IDs, and converting dates to a consistent format. It shows the full loop from your prompt to a function you can call from an automation.
Prérequis
- La CLI
uipet les compétences installées, ainsi qu'une session authentifiée (voir Installer et configurer). - An empty working folder, or an existing project you want to add the function to.
Build the function
-
Open your coding agent in your working folder.
-
Describe the transform:
"Create a coded function that normalizes this order payload: trim whitespace from every string field, uppercase the order ID, and convert the order date to ISO 8601. Here's a sample payload: [paste sample JSON]."
-
Review the function the agent scaffolds — the input and output contract, and the transform logic.
-
Ask the agent to run the function locally against your sample payload and a second, malformed one, to see how it handles bad input.
-
Ask the agent to publish the function once it behaves as expected.
Résultat
A published coded function that normalizes an order payload, ready to be called from a Maestro service task, an agent, or a workflow.
Prochaines étapes
Wire the function into the automation that needs it — for example, a Maestro Flow that calls it before routing the order for approval. See Coded functions.
The generated contract and file layout depend on your agent, your prompt, and whether you chose Python or TypeScript/JavaScript. Use the transform's correctness against your sample payloads, not the exact files, as your signal of success.