Create an AI variable
Create a new AI variable in the public/manual model. Prompt placeholders must come from the relevant fields endpoint output for this workspace; generic conversation placeholders such as previousMessage are not supported here.
Enginy automatically converts prompt into the internal editor format used by the platform.
Use the contact/company fields endpoints as the source of truth for prompt placeholders. Do not assume campaign-only aliases like previousMessage are valid in manual/public AI-variable creation.
Required scope:
AI_VARIABLES_WRITERate limit: 30 requests per minute
Documentation Index
Fetch the complete documentation index at: https://docs.enginy.ai/llms.txt
Use this file to discover all available pages before exploring further.
Authorizations
Body
Unique AI variable name.
1Prompt template. Reference entity fields with {fieldName} placeholders. Use GET /v1/contacts/fields or GET /v1/companies/fields to discover the valid placeholder names for this workspace. Unsupported generic placeholders such as {previousMessage} are rejected in manual/public AI-variable creation.
1Entity that will store the generated value.
CONTACT, COMPANY Optional model ID. Defaults to Enginy’s default AI model.
Optional output contract. Defaults to { "type": "text", "provideExplanation": false }.
Enable Deep Search for this AI variable. Defaults to false.
Optional folder ID.
Optional custom website field source.