# Embedding the Automation Co-Pilot

To add the Automation Anywhere Co-Pilot to the Sidebar:

1. Add a Sidebar Panel starter brick. Configure which sites the Sidebar Panel will appear on
2. Remove the default Document Renderer.
3. Click the + and choose one of the following methods:

### Adding via the AARI Widget Render (Recommended)

* Search for the AARI Widget Renderer Brick and click the Add button

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

* Select your integration and choose between Process or Widget view types

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

* When you're done, click the Render Panel button in the top right of the Page Editor to preview your sidebar
* Click the Save Button to [save your mod](/developing-mods/sharing-mods/saving-a-mod.md).

### Adding the Automation Co-Pilot via IFrame (For Additional Customization)

* Search for the IFrame brick and click the Add button

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

* Configure the IFrame brick:<br>

  * Set the URL field to the Co-Pilot Widget URL
  * Set the height and width to `100%`
  * If you will be mapping data to the process (see below) set the Name field to `aari-embedded-app`

  <figure><img src="/files/0YCh5nUre6OQm4Oz5w7o" alt=""><figcaption></figcaption></figure>
* When you're done, click the Render Panel button in the top right of the Page Editor to preview your sidebar
* Click the Save Button to [save your mod](/developing-mods/sharing-mods/saving-a-mod.md).

See the Automation Anywhere's [Automation Co-Pilot using embedded widget overview documentation](https://docs.automationanywhere.com/bundle/enterprise-v2019/page/enterprise-cloud/topics/hbc/aari-integrations-overview.html) for more configuration options

### Passing information to an Automation Co-Pilot Process

To pass information to a Automation Co-Pilot widget embedded in the sidebar:

{% hint style="danger" %}
Ensure that the IFrame has the name aari-embedded-app, otherwise the Co-Pilot's cross-frame messaging will not function.
{% endhint %}

1. Ensure the "Name" of the IFrame field of the iframe is set to `aari-embedded-app`
2. Add a Trigger Starter brick for Page Load / Navigation
3. Add the Map Automation Anywhere Co-Pilot Data brick&#x20;
4. Configure the Map Automation Anywhere Co-Pilot Data brick to map data to a Co-Pilot process

For more information on mapping values, refer to the Automation Anywhere documentation: [Map host data to Automation Co-Pilot forms](https://docs.automationanywhere.com/bundle/enterprise-v2019/page/co-pilot-map-host-data.html)


---

# 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.pixiebrix.com/integrations/automation-anywhere/embedding-the-automation-co-pilot.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.
