# Amplitude

## Configuring Amplitude Integration

* Navigate to your organization's integration settings.
* Select the Amplitude integration option.

<figure><img src="/files/n82ihIQZtV1SkjiKKx2r" alt="" width="563"><figcaption></figcaption></figure>

* Enter your Amplitude Write Key.
* Choose the specific events you want to send to Amplitude.
* Save your configuration.

When creating an inference, add an `amplitude` attribute to the `additional_metadata` field with the structure below.&#x20;

You must include at least  `user_id`or  `device_id`. Refer to Amplitude documentation for more details on properties, including which are required or optional.

```json
{
    additional_metadata:{
        amplitude:{
            user_id:"82az9ddoi34fski29375fjnafd",
            device_id: "device_id_456",
            event:"Evaluation Pass"
        }
    }
}
```


---

# Agent Instructions: 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.ownlayer.com/integrations/amplitude.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.
