---
title: "Survey"
description: "Send a survey to your customers to collect feedback, with the survey template or a webview that you build."
---

# Survey

> Send a survey to your customers to collect feedback, with the survey template or a webview that you build.

A survey is a set of questions that you can send to your customers to gather feedback about your
product or service. You can create a survey using the Moveo platform and send it to your customers.
See [Survey Response](https://docs.moveo.ai/docs/ai-agents/responses/survey.md) for more details.

## Template

If you want to jump straight into some template code, go to our
[integration-guides repository on GitHub](https://github.com/moveo-ai/integration-guides/tree/main/pages/common).

## How to create your own survey

To create your own survey, follow the steps described in the
[How to create your own webview](https://docs.moveo.ai/docs/ai-agents/responses/webviews.md#how-to-create-your-own-webview) guide. The main
difference with a regular webview is the data submission, which you should do by making an HTTP POST
request to: `https://channels.moveo.ai/v1/survey/${integration_id}`, using the following headers and
body:

```ts
headers: {
       Authorization: `Bearer ${signature}`,
       'X-Moveo-Session-Id': sessionId,
     }
```

```ts
  body: {
       session_id: sessionId,
       timestamp: Date.now(), // unix timestamp,
       feedback: 'Everything was awesome',
       rating: 5
       }
```

## Next steps

- [Survey response](https://docs.moveo.ai/docs/ai-agents/responses/survey.md)
- [Webviews](https://docs.moveo.ai/docs/ai-agents/responses/webviews.md)
- [Analytics](https://docs.moveo.ai/docs/analytics/analytics-overview.md)
