feat(workflow-executor): add user context and date/time to AI prompts#1531
Merged
Scra3 merged 1 commit intofeat/prd-214-setup-workflow-executor-packagefrom Apr 7, 2026
Conversation
2 new issues
|
Every AI call now includes a SystemMessage with: - User info: name, email, id, role, team - Current date and time in UTC (ISO 8601) This gives the AI better context for decisions like date-aware field updates or user-specific actions. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
62962b9 to
0fe5ea4
Compare
|
Coverage Impact This PR will not change total coverage. Modified Files with Diff Coverage (1)
🛟 Help
|
22450d1
into
feat/prd-214-setup-workflow-executor-package
56 of 57 checks passed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Summary
Every AI call now includes a SystemMessage with user context and current date/time:
Added to all executors: condition, read-record, update-record, trigger-action, load-related-record, mcp, and record selection.
Why
Test plan
yarn workspace @forestadmin/workflow-executor tsc --noEmit— compilesyarn workspace @forestadmin/workflow-executor test— 427 tests pass🤖 Generated with Claude Code
Note
Add user context and current UTC timestamp to AI prompts in workflow executors
buildContextMessage()method to BaseStepExecutor that returns aSystemMessagecontaining the executing user's name, email, id, role, team, and current UTC timestamp in ISO format.SystemMessage.Macroscope summarized 0fe5ea4.