REST API - Custom Functions
Generate Custom Function
AI-generate a custom function from a natural language description
POST
Generate Custom Function
AI-generate a custom function from a natural language description. Provide a description of what the function should do, and optionally provide existing code to improve or a cURL command to convert into a function.
Request Body
Natural language description of what the function should do (e.g., “fetch stock prices from Yahoo Finance”)
Response
The generated Python source code ready to use with Create Custom Function
Example Request
Notes
- The generated code includes a
xpander_run_action(...)entry point - Review the generated code before creating the function
- You can provide
user_functionto improve existing code, orimport_curlto convert a cURL command
Body
application/json
Request model for AI-generating a custom function from a description.
Provide a natural language description of what you need, and the AI will generate the Python source code with proper xpander_run_action signature.

