Zendesk

Search Zendesk Help Center articles for an Agent with ZendeskTools.

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

Prerequisites

The following example requires the requests and openai libraries and auth credentials.

uv pip install -U agno requests openai
export ZENDESK_USERNAME="you@example.com/token"
export ZENDESK_PASSWORD="your-zendesk-api-token"
export ZENDESK_COMPANY_NAME="your-subdomain"

Example

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

cookbook/91_tools/zendesk_tools.py
from agno.agent import Agent
from agno.tools.zendesk import ZendeskTools

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

Toolkit Params

ParameterTypeDefaultDescription
usernamestr-The username used for authentication or identification purposes.
passwordstr-HTTP Basic secret; use your API token with an email/token username.
company_namestr-Zendesk subdomain, for example acme from acme.zendesk.com.
timeoutint30Timeout for HTTP requests, in seconds.
enable_search_zendeskboolTrueEnable the search Zendesk functionality.
allboolFalseEnable all functionality.

Toolkit Functions

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

API-token authentication

Enable API-token access in your Zendesk account, then use the email-plus-/token username and API token shown above. The adapter sends HTTP Basic authentication. See Zendesk authentication for the account configuration.

Developer Resources