> ## Documentation Index
> Fetch the complete documentation index at: https://docs.phidata.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Zendesk

**ZendeskTools** enable an Agent to access Zendesk API to search for articles.

## Prerequisites

The following example requires the `requests` library and auth credentials.

```shell theme={null}
pip install -U requests
```

```shell theme={null}
export ZENDESK_USERNAME=***
export ZENDESK_PW=***
export ZENDESK_COMPANY_NAME=***
```

## Example

The following agent will run seach Zendesk for "How do I login?" and print the response.

```python cookbook/tools/zendesk_tools.py theme={null}
from phi.agent import Agent
from phi.tools.zendesk import ZendeskTools

agent = Agent(tools=[ZendeskTools()], show_tool_calls=True)
agent.print_response("How do I login?", markdown=True)
```

## Toolkit Params

| Parameter      | Type  | Default | Description                                                             |
| -------------- | ----- | ------- | ----------------------------------------------------------------------- |
| `username`     | `str` | -       | The username used for authentication or identification purposes.        |
| `password`     | `str` | -       | The password associated with the username for authentication purposes.  |
| `company_name` | `str` | -       | The name of the company related to the user or the data being accessed. |

## Toolkit Functions

| Function         | Description                                                                                    |
| ---------------- | ---------------------------------------------------------------------------------------------- |
| `search_zendesk` | This function searches for articles in Zendesk Help Center that match the given search string. |

## Information

* View on [Github](https://github.com/agno-agi/phidata/blob/main/phi/tools/zendesk.py)
