Zendesk

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

Prerequisites

The following example requires the requests library and auth credentials.

1uv pip install -U requests
1export ZENDESK_USERNAME=***
2export ZENDESK_PW=***
3export ZENDESK_COMPANY_NAME=***

Example

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

1from kern.agent import Agent
2from kern.tools.zendesk import ZendeskTools
3
4agent = Agent(tools=[ZendeskTools()])
5agent.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.
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.

Developer Resources