input_capture block
A structured form that collects information from the visitor before (or alongside) the chat. On submit, the form values are formatted as a multi-line message and either sent to the agent automatically or pre-filled into the chat input for the visitor to review.
When to use it
- Triage / qualification: “What model do you have? What’s the issue category?”
- Booking intake: “Name, email, preferred time”.
- Sales lead routing: “Company size, use-case, timeline”.
Shape
Behaviour modes
send_as_message— On submit, the formatted text is automatically sent as the visitor’s first chat message and the agent responds. Use this for triage / qualification where the agent should react.append_to_input— On submit, the formatted text is dropped into the chat input box and the visitor can review / edit / add to it before clicking Send. Use this when the form is partial context rather than the visitor’s whole question.
Tips
- Keep the form short — 3–5 fields max. Long forms convert poorly compared to letting the agent ask one question at a time.
- For required-info gates (e.g. consent, region selection) you may prefer a notice banner that blocks engagement, then suggested_prompts — that’s a softer pattern than a wall of form fields.
- The submitted text reaches the agent as
"<heading>:\n- <Label>: <value>\n- <Label>: <value>". The agent sees it like any other user message — yourrules,examples, and memory schema apply. - Schema enforcement: each
fieldmust havename,label, andtype.enumfields must include non-emptyoptions. Configurations that violate either constraint are rejected and not saved.