> For the complete documentation index, see [llms.txt](https://docs.questera.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.questera.ai/greta/greta-recipies/ed-tech.md).

# &#x20;Ed-Tech

## Add webhook destination

Log in to your Segment account, open workspace, and select source. Click on **Add Destination** and search and select [**Webhooks**](https://segment.com/docs/connections/destinations/catalog/webhooks/).&#x20;

<figure><img src="/files/OKKbGJXyj2UUJWT00SLW" alt=""><figcaption></figcaption></figure>

## Create Mapping

Next after creating the destination, click the **Mappings** tab and add a new mapping

<figure><img src="/files/LuVxQxdBEDwhU7eGX9bg" alt=""><figcaption></figcaption></figure>

## Set Event types to send to Quest

Select the event types that you want to send to Quest. In this example, we select identify, group, and track, but you can select any event type you want to send to Quest.

<figure><img src="/files/atzH1WeVAYGLdVqimWpT" alt=""><figcaption></figcaption></figure>

## Add Webhook URL

Fill the Select mappings with using:

* `POST` as Method
* `PROD - https://api.questprotocol.xyz/api/segment/get-data` as the URL
* `STAGING -` \
  `https://staging.questprotocol.xyz/api/segment/get-data` as the URL
* 100 as **Batch Size**. Note: if you send fewer than 100 events per day, it is recommended to set this to a lower value to avoid delays in sending events to Quest.
* Request format\
  `{ userId, event, properties } = req.body`\
  &#x20;`entityId is included in properties`&#x20;
* `Pass headers - apikey`\
  `apikey can be found in` [`Settings`](https://staging.questlabs.ai/admin/settings)

<figure><img src="/files/W3vfj2ar3viRDbnPM3Ir" alt=""><figcaption></figcaption></figure>

Finally, set **Enable Batching?** to **No**. \
Optionally, you can send a test event to verify that the webhook is working. Click **Save** to save the webhook.

## Save & enable webhooks destination

Open the **Settings** tab and enable the Destination & save the changes.

<figure><img src="/files/49dV1Nokr9Kms9tjmjaJ" alt=""><figcaption></figcaption></figure>

Congratulations! You have successfully set up Quest as a destination for Segment.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.questera.ai/greta/greta-recipies/ed-tech.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
