Skip to content

[Templates] add display value to template message - #356

Merged
Aratramba merged 1 commit into
developfrom
template-display-field
Nov 25, 2026
Merged

Aratramba merged 1 commit into
developfrom
template-display-field

Conversation

@Aratramba

@Aratramba Aratramba commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

Currently template message results only hold the tapped button's index, e.g '0'. Journeys can't access the template message text that was sent on WA. Turn wants to read templates aloud via TTS, and that needs the rendered text on the block result - including variables substituted.

An upcoming change in engage saves the sent message text. Without this change, a button reply wipes that text. With it, replies keep the text and add label. Flow submissions stay untouched.

This PR will unlock this feature:

image

@Aratramba Aratramba self-assigned this Nov 25, 2026
@github-actions

github-actions Bot commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

All contributors have signed the CLA ✍️ ✅
Posted by the CLA Assistant Lite bot.

@Aratramba

Copy link
Copy Markdown
Contributor Author

I have read the CLA Document and I hereby sign the CLA

github-actions Bot added a commit that referenced this pull request Nov 25, 2026
# block's var at send time. `FlowRunner.Spec.Block.evaluate_user_input/4` replaces that var
# with the result below, so `display` has to ride along with it.
@spec carry_display(map, FlowRunner.Spec.Block.t(), FlowRunner.Context.t()) :: map
defp carry_display(result, %{name: name}, %{vars: vars}) when is_binary(name) do

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see what you did here

@Aratramba
Aratramba merged commit 4b6670d into develop Nov 25, 2026
2 of 3 checks passed
@github-actions github-actions Bot locked and limited conversation to collaborators Nov 25, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants