How tool calling works
- The agent receives a user message.
- The LLM evaluates whether the message requires a tool call.
- The LLM generates a structured function call with the tool name and arguments.
- Lyzr executes the tool and returns the result to the LLM.
- The LLM incorporates the result into its final response.
Types of tools
Pre-built tools
A library of ready-to-use integrations. Navigate to Tools in the sidebar, select a tool, and authenticate with OAuth or an API key. Categories include: Email (Gmail, Outlook), Calendar, Slack, Notion, Salesforce, GitHub, Google Sheets, Jira, HubSpot, Discord, ClickUp, and more.Custom tools
You can define your own tools by providing an OpenAPI spec or a JSON schema for the function. Custom tools support three authentication modes:- API Key
- OAuth 2.0 (with custom token and refresh URLs)
- No authentication