# Cookies

Enable your TaskBot to access your browser cookie session, so that it doesn't have to log in every time it runs in an incognito session.

{% hint style="warning" %}
If you ever log out from the website that you copied cookies from, this will invalidate the cookie session. So if you log out, be sure to re-copy and re-paste your cookies again!
{% endhint %}

{% hint style="warning" %}
Your cookies may expire over time. Simply copy them again and paste to your TaskBot workflow, as described below.
{% endhint %}

### Step 1: Copy Cookies

Download this free-of-charge plugin Cookie-Editor: <https://chromewebstore.google.com/detail/cookie-editor/hlkenndednhfkekhgcdicdfddnkalmdm>.

Click on the puzzle sign on your Chrome bar and pin it, like shown below.

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

Go to the website for which you need to get cookies. For example, if you are building a TaskBot for LinkedIn, open linkedin.com, make sure you are logged in, click on the Cookie-Editor plugin and click on Export button - marked red in the screenshot below. Then select *Export as JSON* option. That action will copy your cookies to your clipboard.&#x20;

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

### Step 2: Paste Cookies to ZeroWork

Now return to your TaskBot builder page, open *TaskBot Settings* and paste your cookies in the cookies field. Now you are good to go!

<div align="center" data-full-width="false"><figure><img src="/files/Yp2HslHyJDuepba6XzdA" alt=""><figcaption></figcaption></figure></div>

### Troubleshooting: TaskBot Cannot Log in with Cookies

In some rare cases, some websites do not accept cookies to be logged in with.

In such cases, you have two options:&#x20;

* Use building blocks to build a login flow. For example, add the building block [Insert Text or Data](/using-zerowork/using-building-blocks/insert-text-or-data.md) with your username and password and then add the building block [Click Web Element](/using-zerowork/using-building-blocks/click-web-element.md) to click on the button "Log in". You can encrypt your password, as described here: [Insert Text or Data](/using-zerowork/using-building-blocks/insert-text-or-data.md#encrypt-content).&#x20;
* Use [Broken mention](broken://pages/tEjiJFmusryioJ0aoXpw) or [Broken mention](broken://pages/XOXx7oHkaE4nG0T85wbj) run modes.

### Video Tutorial

Start watching from 2:55 mark to see how to use cookies.

{% embed url="<https://youtu.be/zm11yRzEUgk?si=1wGLuLPm-cEd-1oA>" %}


---

# 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.zerowork.io/using-zerowork/general-run-schedule-share-webhooks/cookies.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.
