formcierge_command_prompt
Filter
Since v1.2.0
Modify the system prompt sent to the AI model for form generation. Use to customise AI behaviour or add domain-specific instructions.
Parameters
$prompt
string
The system prompt string.
$context
array
Contextual data including the user's request.
includes/API/AI/OfflineBrain.php
Basic Usage
add_filter( 'formcierge_command_prompt', function ( $prompt, $context ) {
return $prompt . 'nnAlways generate forms in English. Do not use more than 8 fields.';
}, 10, 2 );