Create rule draft
Rules
Create rule draft
Generate a draft rule from instructions.
POST
Create rule draft
Generates a draft
Rule from natural-language behavior instructions.
The dashboard-auth draft route accepts multipart uploads, but the workspace-API-key public route is JSON-only. On the public route,
behaviorInstructions is therefore required in practice.Headers
Bearer token containing your Fini workspace API key. Format:
Bearer fini_... The key needs write scope.application/jsonBody parameters
Natural-language instructions describing the workflow you want Fini to turn into a draft rule.
Response
Returns the generated draftRule.
Draft responses return
isDraft: true and botIds: [].Errors
400 Bad Request
400 Bad Request
The body is malformed or
behaviorInstructions is missing. Current service behavior requires either instructions or a file, and file upload is not exposed on the public route.401 Unauthorized
401 Unauthorized
403 Forbidden
403 Forbidden
The API key does not include the
write scope required for this route.500 Internal Server Error
500 Internal Server Error
Fini failed while generating or storing the draft rule.

