Survey
Survey
SurveyAgent conducts automated surveys with different question types (rating, multiple choice, yes/no, open-ended), validation, and response logging.
Basic Usage
Question Types
Question Format
Constructor Parameters
Built-in Functions
SurveyAgent provides these SWAIG functions automatically:
Survey Flow

Complete Example
Best Practices
Question Design
- Keep surveys short (5-7 questions max)
- Start with easy questions
- Put open-ended questions at the end
- Make non-essential questions optional
Question Types
- Use rating for satisfaction metrics (NPS, CSAT)
- Use multiple_choice for specific options
- Use yes_no for simple binary questions
- Use open_ended sparingly - harder to analyze
Validation
- Set appropriate max_retries (2-3)
- Use clear scale descriptions
- List all options for multiple choice