create_function
Create a custom code module in Cognigy.AI for integrations, scheduled jobs, or computations. Provide project ID, name, and code to define the function.
Instructions
Creates a new Cognigy.AI Function. Functions are custom code modules for integrations, scheduled jobs, or computations. MUTATING: Set dryRun=false to create.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | No | The function code (JavaScript/TypeScript) | |
| name | Yes | Name for the function | |
| type | No | Function type | |
| dryRun | No | If true (default), validates without creating. Set to false to actually create. | |
| projectId | Yes | The project ID to create the function in | |
| parameters | No | Function parameters schema | |
| description | No | Description of the function's purpose |