Survey create
Survey-Create by PostHog is a versatile AI-powered tool designed to create customizable surveys within your project. It supports multiple question types and various survey delivery formats, enabling targeted feedback collection effectively.
Features
- Supports multiple survey types including popover, API-based, widget, and external surveys for flexible integration.
- Offers diverse question formats such as open-ended, multiple choice, rating (with customizable scales), and link questions.
- Enables advanced branching logic and response-based question flows for personalized user experiences.
- Provides extensive customization options for survey appearance, including colors, fonts, widget type, and white-labeling.
- Includes targeting and scheduling features like start dates, response limits, iteration counts, and user property-based filters for precise audience engagement.
Benefits
- Collect detailed user feedback with flexible question formats tailored to your needs.
- Enhance survey response rates using popovers, widgets, or API methods integrated seamlessly into your app.
- Leverage branching and response-based logic to create dynamic, engaging surveys that adapt to user input.
- Customize the survey look and feel to match your brand identity and improve user experience.
- Optimize survey deployment with targeting, scheduling, and response management to gather actionable insights efficiently.
Description
Creates a new survey in the project. Surveys can be popover or API-based and support various question types including open-ended, multiple choice, rating, and link questions. Once created, you should ask the user if they want to add the survey to their application code.
Parameters
12 parameters
| Name | Type | Description |
|---|---|---|
| namerequired | string | — |
| description | string | — |
| type | enum | — |
| questionsrequired | array | — |
| appearance | object | — |
| start_date | any | Setting this will launch the survey immediately. Don't add a start_date unless explicitly requested to do so. |
| responses_limit | any | The maximum number of responses before automatically stopping the survey. |
| iteration_count | any | For a recurring schedule, this field specifies the number of times the survey should be shown to the user. Use 1 for 'once every X days', higher numbers for multiple repetitions. Works together with iteration_frequency_days to determine the overall survey schedule. |
| iteration_frequency_days | any | For a recurring schedule, this field specifies the interval in days between each survey instance shown to the user, used alongside iteration_count for precise scheduling. |
| enable_partial_responses | boolean | When at least one question is answered, the response is stored (true). The response is stored when all questions are answered (false). |
| linked_flag_id | number | null | The feature flag linked to this survey |
| targeting_flag_filters | object | Target specific users based on their properties. Example: {groups: [{properties: [{key: 'email', value: ['@company.com'], operator: 'icontains'}], rollout_percentage: 100}]} |