Building functions with RivalBot
RivalBot is the embedded conversational co-pilot for function creation. Instead of writing handler logic and parameter schemas by hand, you describe the capability you need and RivalBot constructs the initial build inside the Function Editor.
What RivalBot generates
Section titled “What RivalBot generates”Ask RivalBot to build a function and it produces a complete asset package:
- Executable handler code — the underlying function logic in your choice of Python, JavaScript, Lua, or Storm.
- Input and output schemas — structured JSON schemas for required variables, data types, and expected return keys.
- Automated test cases — draft test inputs and assertions you can run in the interactive test panel to verify correctness.
- Metadata and branding — the function name, category tags, functional summary, and a custom icon.
Building a function, step by step
Section titled “Building a function, step by step”-
State your objective. Open RivalBot, or click Chat with RivalBot inside the Function Editor. Describe what the function should accomplish, including target API endpoints, expected input fields, and the data you want returned.
-
Refine interactively. RivalBot asks clarifying questions about edge-case handling, authentication parameters, or your preferred implementation language. Give specific answers or accept the recommended defaults.
-
Review in the Function Editor. When generation finishes, RivalBot hands the asset to the editor. Inspect the handler in the Code tab, review the parameter schemas, and check the pre-populated documentation.
-
Validate and publish. Run the generated test cases in the interactive test panel. Once verified, set visibility, add release notes, and publish the function to your workspace.
Any credentials the generated code needs are attached as environment secrets rather than written into the handler.
Manual vs. RivalBot-assisted
Section titled “Manual vs. RivalBot-assisted”| Capability | Manual creation | RivalBot-assisted creation |
|---|---|---|
| Handler code | Hand-written by developers | Generated from plain-text prompts |
| Input schemas | Manually formatted JSON | Auto-generated to match function parameters |
| Test cases | Configured step by step | Pre-populated with draft inputs and assertions |
| Development speed | Requires manual coding time | Functional draft ready in minutes |