Calls an OpenAI model to produce a RouterOS script from the user’s prompt. Returns JSON with commands, error, destructive boolean, etc. Throttled to 5 requests/minute. Requires script:create
scope.
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
A minimal JSON body containing 'prompt' up to 200 chars.
Prompt for the AI to generate RouterOS commands
JSON object from GPT