- はじめに
- ベスト プラクティス
- 機能
- スキル
- CLI
- 例
- 例の概要
- レシピ: エージェントを構築する
- レシピ: RPA で自動化する
- レシピ: Web アプリへのデータ入力
- レシピ: デスクトップ アプリからデータを抽出します
- レシピ: ワークフローをリファクタリングしてテストする
- レシピ: REFramework を使用したキューベースのプロセス
- レシピ: Maestro Flow を構築する
- Recipe: build a Maestro Case
- レシピ: コード化されたアプリと API ワークフロー
- Recipe: build a coded function
- レシピ: Test Manager でリリースを検証する
- レシピ: IXP を使用してドキュメントからデータを抽出する
- Advanced (カスタム)
- ヘルプ
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.
前提条件
- インストールされている
uipCLI とスキル、および認証されたセッション ( 「インストールと設定」を参照)。 - 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.
結果
A published coded function that normalizes an order payload, ready to be called from a Maestro service task, an agent, or a workflow.
次のステップ
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.