pub struct Gather {
pub type: Type,
pub output: Box<JsonSchema>,
pub confirm_content: Option<bool>,
pub hooks: Option<Vec<Hook>>,
pub max_retries: Option<f64>,
pub literal_template: Option<String>,
pub name: String,
pub metadata: Option<Value>,
}Fields§
§type: Type§output: Box<JsonSchema>§confirm_content: Option<bool>This is whether or not the workflow should read back the gathered data to the user, and ask about its correctness.
hooks: Option<Vec<Hook>>This is a list of hooks for a task. Each hook is a list of tasks to run on a trigger (such as on start, on failure, etc). Only Say is supported for now.
max_retries: Option<f64>This is the number of times we should try to gather the information from the user before we failover to the fail path. An example of this would be a user refusing to give their phone number for privacy reasons, and then going down a different path on account of this
literal_template: Option<String>This is a liquid templating string. On the first call to Gather, the template will be filled out with variables from the context, and will be spoken verbatim to the user. An example would be "Base on your zipcode, it looks like you could be in one of these counties: {{ counties | join: ", " }}. Which one do you live in?"
name: String§metadata: Option<Value>This is for metadata you want to store on the task.