Stacks Results
Some responses captured while users interact with stacks can be stored for analysis with the write_result()
function.
This function follows the Flow Results Specification. See the Flow Results API for more details on how to retrieve these user responses and their related metadata.
Example
The following example creates a stack that ask the user for their name, then store that result for later analysis and thank the user for their response.
card AskName, then: StoreName do
name = ask("What is your name?")
end
card StoreName do
write_result("name", name)
text("Thanks, @name - Your response has been stored.")
end