Skip to content

fix(worker): resolve contact variables in AI step prompts - #1658

Merged
nguyenvantruc92 merged 1 commit into
mainfrom
fix/ai-steps-resolve-prompt-variables
Nov 5, 2026
Merged

nguyenvantruc92 merged 1 commit into
mainfrom
fix/ai-steps-resolve-prompt-variables

Conversation

@nguyenvantruc92

Copy link
Copy Markdown
Contributor

AI Generate Text, AI Analyze Image and AI Generate Text Agent sent
{{variable}} placeholders to the model verbatim, although their prompt
fields offer the variable picker. Resolve them with
resolveContactVariablesDeep before building the model messages:

  • AI Generate Text: system prompt and user message
  • AI Analyze Image: prompt
  • AI Generate Text Agent: message

Prompts without placeholders skip the contact lookup. Spintax stays
off because AI prompts often contain JSON.

@github-actions github-actions Bot added the bug Something isn't working as expected label Nov 5, 2026
@nguyenvantruc92
nguyenvantruc92 merged commit dd2d542 into main Nov 5, 2026
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working as expected

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant