> For the complete documentation index, see [llms.txt](https://docs.qatts.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.qatts.com/v-3.0/automation/objects/smarty.md).

# Smarty

**Smarty** is a predefined words or functions that are used in the **Action class**. For example while testing, If you have to read OTP of an email for 'n' number of times, Instead of writing down the code each and every time you can use the predefined word such as "**email:Reads OTP**", where the action that needs to be taken is already written in the library files.

To add Smarty follow the below steps.

**STEP 1**:  Click on **Studio** on the Left Navigation Panel, it directs to new window which will be appearing as shown below.

![](/files/-MgtFaJtSkHv-XpHDsvH)

![A new window is opened after clicking on the Studio](/files/-MgpSeICOkIC4wEvjWBv)

**STEP 2**: On the right corner Click on "**+**" icon and select **Add Smarty**, it should appear as below.

![](/files/-MhIFueLjdvmKsgU1rWE)

**STEP 3**: Fill the required details as shown in the below screenshot.

![](/files/-MhIG0d-Q6Jf0D17zJWL)

**STEP 4**: After adding the required details click on **Save** and the data will be added in the Group you have Selected.


---

# 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, and the optional `goal` query parameter:

```
GET https://docs.qatts.com/v-3.0/automation/objects/smarty.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
