- Get started
- Best practices
- Capabilities
- Skills
- CLI
- Examples
- Examples overview
- Recipe: build an agent
- Recipe: automate with RPA
- Recipe: enter data into a web app
- Recipe: extract data from a desktop app
- Recipe: refactor and test a workflow
- Recipe: a queue-based process with REFramework
- Recipe: build a flow in Maestro
- Recipe: build a Maestro Case
- Recipe: coded app and API workflow
- Recipe: build a coded function
- Recipe: verify a release with Test Manager
- Recipe: extract data from documents with IXP
- Advanced
- Help
Recipe: build a coded function
Build, test, and publish a coded function that normalizes an order payload.
Build a coded function in Python or TypeScript/JavaScript that normalizes an order payload.
Prerequisites
- Install and set up complete, and you are signed in.
- An empty working folder, or an existing project.
Normalize an order payload
-
Open your coding agent in the 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 contract and transform logic.
-
Ask the agent to run the function locally against your sample payload and a malformed one. Check both outputs.
-
Ask the agent to publish the function.
Use the published function
After each publish, update the function's release in Orchestrator under Automations > Processes. Triggers use the new version only after that.
Call the function from a Maestro service task, an agent, or a workflow. See Coded functions.