> ## Documentation Index
> Fetch the complete documentation index at: https://botpress-charmenta-pr-693.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Assigning a value

export const GoodToKnow = ({children}) => {
  return <Callout icon="notebook-pen" color="#65d15a" iconType="regular">
      {children}
    </Callout>;
};

A newly-created variable is like an empty box—you need put something inside it before you can use it. This is called *assigning a value* to your variable.

Let's use our `firstName` variable to remember the user's first name. Go back to the Main Workflow and select your Autonomous Node. This opens its inspector:

<Frame>
  <img alt="Autonomous Node inspector" className="block dark:hidden" src="https://mintcdn.com/botpress-charmenta-pr-693/wyQ3c0XBzAN2Zd7L/tutorial/basics/storing-information/assets/inspector.png?fit=max&auto=format&n=wyQ3c0XBzAN2Zd7L&q=85&s=6e64d75aee2c1bdca0edb62b10f3b418" width="1264" height="502" data-path="tutorial/basics/storing-information/assets/inspector.png" />

  <img alt="Autonomous Node inspector" className="hidden dark:block" src="https://mintcdn.com/botpress-charmenta-pr-693/wyQ3c0XBzAN2Zd7L/tutorial/basics/storing-information/assets/inspector-dark.png?fit=max&auto=format&n=wyQ3c0XBzAN2Zd7L&q=85&s=43e502280ec15854b93d9039916da771" width="1264" height="502" data-path="tutorial/basics/storing-information/assets/inspector-dark.png" />
</Frame>

## Giving access to variables

By default, the Autonomous Node can't check what's in a variable or assign it a different value.

Let's give it access. Select **+ Add variable(s)**, then select `workflow.firstName`. Then, check **Allow write access**, so your bot has permission to modify the variable.

<Frame>
  <img alt="Variable access" className="block dark:hidden" src="https://mintcdn.com/botpress-charmenta-pr-693/wyQ3c0XBzAN2Zd7L/tutorial/basics/storing-information/assets/variable-access.png?fit=max&auto=format&n=wyQ3c0XBzAN2Zd7L&q=85&s=5ba357bf0cc3ba45b581f00448fb569d" width="1264" height="152" data-path="tutorial/basics/storing-information/assets/variable-access.png" />

  <img alt="Variable access" className="hidden dark:block" src="https://mintcdn.com/botpress-charmenta-pr-693/wyQ3c0XBzAN2Zd7L/tutorial/basics/storing-information/assets/variable-access-dark.png?fit=max&auto=format&n=wyQ3c0XBzAN2Zd7L&q=85&s=170779a3896de8e34ee9e788dd0ef0ae" width="1264" height="152" data-path="tutorial/basics/storing-information/assets/variable-access-dark.png" />
</Frame>

## Modifying your prompt

Next, modify the prompt so your bot knows how to work with the variable. Erase everything in the **Instructions** field, then paste the following:

```txt wrap theme={null}
You are Teddy 🐶, the customer support bot for Teddy's Pet Shop.

If the `firstName` variable has a value, use it to address the user by name. If not, prompt the user to enter their name, then assign it to `firstName`.
```

Now, switch back to the Emulator and start a conversation with your bot:

<Frame>
  <img alt="Variable test" className="block dark:hidden" src="https://mintcdn.com/botpress-charmenta-pr-693/wyQ3c0XBzAN2Zd7L/tutorial/basics/storing-information/assets/variable-test.png?fit=max&auto=format&n=wyQ3c0XBzAN2Zd7L&q=85&s=926c764d39a968e941df4c2980e2f89d" width="1264" height="804" data-path="tutorial/basics/storing-information/assets/variable-test.png" />

  <img alt="Variable test" className="hidden dark:block" src="https://mintcdn.com/botpress-charmenta-pr-693/wyQ3c0XBzAN2Zd7L/tutorial/basics/storing-information/assets/variable-test-dark.png?fit=max&auto=format&n=wyQ3c0XBzAN2Zd7L&q=85&s=18d3daea2cbba78e47cade5112e1d326" width="1264" height="804" data-path="tutorial/basics/storing-information/assets/variable-test-dark.png" />
</Frame>

Nice! Our modified prompt worked. If you look back at the Variables section, you can see that the value updated:

<Frame>
  <img alt="New value" className="block dark:hidden" src="https://mintcdn.com/botpress-charmenta-pr-693/wyQ3c0XBzAN2Zd7L/tutorial/basics/storing-information/assets/new-value.png?fit=max&auto=format&n=wyQ3c0XBzAN2Zd7L&q=85&s=c75ac53c01cc3acb5d9321958237a35c" width="1198" height="286" data-path="tutorial/basics/storing-information/assets/new-value.png" />

  <img alt="New value" className="hidden dark:block" src="https://mintcdn.com/botpress-charmenta-pr-693/wyQ3c0XBzAN2Zd7L/tutorial/basics/storing-information/assets/new-value-dark.png?fit=max&auto=format&n=wyQ3c0XBzAN2Zd7L&q=85&s=c03bfe51a6d137312a887c22e82cc159" width="1198" height="286" data-path="tutorial/basics/storing-information/assets/new-value-dark.png" />
</Frame>
