Skip to content

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.

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.
  1. 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.

  2. 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.

  3. 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.

  4. 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.

CapabilityManual creationRivalBot-assisted creation
Handler codeHand-written by developersGenerated from plain-text prompts
Input schemasManually formatted JSONAuto-generated to match function parameters
Test casesConfigured step by stepPre-populated with draft inputs and assertions
Development speedRequires manual coding timeFunctional draft ready in minutes