# Troubleshooting & FAQs

<details>

<summary><strong>Defining Variables, Assigning Values, and Usage</strong></summary>

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

Use the **`Insert Data`** block to save data by specifying the variable name and its value.

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

To call a variable, enclose it within double curly braces `{{ }}`\
Start by specifying the data type (i.e., variable or variables), followed by a dot and the variable name.

* **Example:**
  * **Input:** `{{variables.Name}}`
  * **Output:** `GemAutomate`

</details>

<details>

<summary><strong>How do the two programs differ in their functionality?</strong></summary>

**GemAutomate Phone**: Uses a computer to automate tasks on Android mobile devices. \
It supports managing multiple accounts simultaneously and is ideal for automating games or social media applications.\
**GemAutomate Browser**: Uses a computer to automate tasks through a web browser. \
It supports various online platforms including Instagram, Facebook, and TikTok.

</details>

<details>

<summary><strong>How to backup and export profiles data</strong></summary>

* Select the profile&#x20;

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

* Go to `Actions` then `Backup`

<figure><img src="/files/5u4PMQjii495sURBIdwM" alt=""><figcaption></figcaption></figure>

* Select the storage location, then click on `Export`

<div align="left"><figure><img src="/files/OIdLR9gthYfg7UOQBiBg" alt=""><figcaption></figcaption></figure></div>

</details>

<details>

<summary><strong>How to Import profiles data</strong></summary>

* Go to `Actions` then `Backup`

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

* Click on **`Import`** then **`Select the ZIP file`**

<div align="left"><figure><img src="/files/lpTBPBCOK7BFrtyhKNMg" alt=""><figcaption></figcaption></figure></div>

* Select the file you backed up, then click on `Import`

<div align="left"><figure><img src="/files/Oh6TvvjPXAmFw3DfRmFP" alt=""><figcaption></figcaption></figure></div>

</details>

<details>

<summary><strong>How to Change Accessed Device</strong></summary>

* Please follow instructions on [**Change Accessed Device**](/manual/manual/change-accessed-device.md)

</details>

***

<details>

<summary><strong>GemAutomate Browser</strong> : Defining Position or Adding a CSS Selector </summary>

**Target Element Requirement:**\
Every action block must include a target element. This is equivalent to defining the location where the script will operate (e.g., clicking or typing). You must specify the position of the component on the webpage every time.

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

Click the button to choose the desired element position. The element’s ID will be displayed in the browser.

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

Click at the desired position with the mouse. The ID will appear in the designated field. \
Then, copy the ID and paste it in.

</details>

<details>

<summary><strong>GemAutomate Browser</strong> : Creating Multiple Profiles </summary>

Click the **Create Profile** button, then navigate to the **Multiple Profile** page.

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

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

Set up the Browser Config and assign a name by selecting and specifying the OS or User Agent.

* For example, name it "Linux" if you have selected Linux as the OS and opted for a random User Agent.

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

<figure><img src="/files/Rex0vCBmKV1L6yAA7NMD" alt=""><figcaption><p><strong>then scroll down and select 'OK'</strong></p></figcaption></figure>

After configuration, select the number of profiles you wish to create, click **Create profiles**, and then return to the profile page.

<figure><img src="/files/4aFpD57HooEFdMr3IiLs" alt=""><figcaption></figcaption></figure>

</details>

<details>

<summary><strong>GemAutomate Browser</strong> : Adding Proxy for Multiple Profiles</summary>

Choose all the profiles corresponding to the desired number (using one profile per proxy)

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

Proxy data >> Import proxy

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

Enter the proxy information (one proxy per line)

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

Once the data is successfully entered, the proxy number will appear on the profile page. If unsuccessful, re-check the data to ensure it complies with the defined format.

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

</details>

***

<details>

<summary><strong>GemAutomate Phone</strong>: How to connect Android Phone and Box Phone</summary>

**Enable USB Debugging on Android**

1. Open **Settings** on your Android device
2. Go to **About phone**
3. Tap **Build number** 7 times to unlock **Developer options**
4. Go back to **Settings > Developer options**
5. Enable **USB Debugging**

***

#### Connect your phone to your computer via USB

* The first time you connect, a message will pop up on your phone:\
  \&#xNAN;**"Allow USB debugging?"**
* Tap **Allow** to confirm.

</details>

<details>

<summary><strong>GemAutomate Phone</strong>: Defining Position or Adding Xpath</summary>

**Inspector** is a function that allows you to access information about packages and application elements on the screen,\
enabling you to write and develop **automation** more effectively.

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

* **Select Devices**\
  Displays a list of devices connected to **GemAutomate Phone**. You can select the device you want to use from this field.
* **Reload**\
  Reloads the device interface after any actions have been performed on the screen.
* **Search for element**\
  Search for an element using **ID**, **XPath**, **Name**, or **Class Name**.

</details>


---

# 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://gemautomate.gitbook.io/manual/general/troubleshooting-and-faqs.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.
