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

Prerequisites

The following example requires the requests library and auth credentials.

pip install -U requests
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.

cookbook/tools/zendesk_tools.py
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

ParameterTypeDefaultDescription
usernamestr-The username used for authentication or identification purposes.
passwordstr-The password associated with the username for authentication purposes.
company_namestr-The name of the company related to the user or the data being accessed.

Toolkit Functions

FunctionDescription
search_zendeskThis function searches for articles in Zendesk Help Center that match the given search string.

Information