# Set Variable

The Set Variable node is used to assign values and set a parameter name so those values can be used wherever they are required in a workflow.

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

The screenshot above shows the user declaring a ticket id variable within a ‘View tickets’ workflow. In this scenario, the user knows the ticket ID before this step and that ID is passed as a variable name called `theticketId`.

See [**Bot Conversation Variables**](https://docs.aisera.com/aisera-platform/crafting-the-conversation/how-to-edit-conversation-key-messages/bot-conversation-variables) also.


---

# 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.aisera.com/aisera-platform/ai-automation-optimize-flow/ai-workflow-studio/workflow-reference-guides/workflow-nodes/operations-nodes/set-variable.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.
