π SmartForm as a Conversation Tool
The SmartForm Trigger serves as an entry point for workflows by collecting user responses through a form. All collected data, including AI-calculated results (if enabled in the form configuration), is passed to SmartFlow. It enables you to use form data dynamically in your workflows and create logic-driven actions.

π Trigger Detailsβ
Name: SmartForm
Category: Triggers
π§ Parametersβ
1. Form IDβ
- Type: string
- Description: The unique identifier of the SmartForm.
- Required: Yes
- Example:
form12345
2. Form Responsesβ
- Type: object
- Description: Contains all questions and their respective answers, which can be used as variables in SmartFlow actions.
- Required: Yes
- Example:
{
 "name": "John Doe",
 "email": "john.doe@example.com",
 "age": 30,
 "feedback": "Great service!"
 }
3. Observationβ
- Type: string
- Description: Sets the observation for the AI after form completion. By default, this is the AI-calculated result or the form's answers. However, you can customize it manually.
- Required: Optional
- Default Value: The form's result or response.
π How It Worksβ
- 
Form Completion: - Users interact with the SmartForm and provide responses to the questions.
 
- 
Result Handling: - Once the form is submitted, SmartFlow receives:
- All form data: Each question and answer as variables.
- Result (if enabled): AI-calculated outcomes based on the user's inputs.
 
- The observation is set to either the calculated result or default form data.
 
- Once the form is submitted, SmartFlow receives:
- 
Variables in Workflow: - Every question and answer is available for use in SmartFlow actions.
- Example: Use {name}or{feedback}in an email action.
 
π‘ Use Casesβ
1. Personalized Onboardingβ
- Scenario: Use SmartForms to collect user details during onboarding.
- Workflow:
- Variables from the form (e.g., name, age) are used to personalize the next steps.
- Example: Assign users to a specific customer success manager based on their responses.
 
2. Survey Analysisβ
- Scenario: Gather feedback and analyze it dynamically.
- Workflow:
- Use AI-calculated results to gauge sentiment.
- Variables like {rating}and{feedback}are used to take appropriate actions.
 
3. Dynamic Decision-Makingβ
- Scenario: Allow SmartFlow to make decisions based on user responses.
- Workflow:
- Questions in the form (e.g., {role}) guide the workflowβs next steps.
 
- Questions in the form (e.g., 
π Example Configurationβ
Form ID:
customerFeedbackForm01
Form Questions:
{
  "name": "string",
  "email": "string",
  "feedback": "string",
  "rating": "number"
}
Observation:
"Feedback analysis complete. Sentiment: Positive."
π οΈ Tipsβ
- 
Observation Control: - Manually set the observation to influence the AIβs next action. For instance:
"Start a new workflow based on the form data."
 
- Manually set the observation to influence the AIβs next action. For instance:
- 
Debugging: - Test form submissions to ensure that all variables are correctly passed to SmartFlow.
 
- 
Result Accuracy: - If result calculation is enabled, ensure that AI logic in the form is correctly configured for accurate outcomes.