Create an AI variable
Create a new AI variable (AI research): a research/enrichment value computed per contact or company, e.g. classifications, extracted facts, findings. Do NOT use this for outreach content — personalized outbound messages belong in POST /v1/ai-variables/ai-messages, reusable phrase fragments in POST /v1/ai-variables/ai-snippets, and literal (non-AI-generated) sequences in POST /v1/ai-variables/message-templates. 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
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.