Python Quickstart
Learn how to discover and use API actions with natural language
Overview
Tool Search allows you to discover API actions using natural language queries. This makes it easy to find the right API endpoints without needing to read through documentation or understand complex API specifications.
Action Discovery
The first step is to use natural language to discover available actions. You can do this by making a request to the Wild Card API:
The API will return relevant actions based on your natural language query. These actions are formatted in a way that can be directly used with language models.
Agent Integration
Once you have discovered the relevant actions, you can use them with your agent:
How It Works
- Natural Language Query: You start by describing what you want to do in plain English.
- Action Discovery: The Wild Card API searches through its collection of API specifications to find relevant actions.
- Tool Definition: The discovered actions are converted into a format that language models can understand and use.
- Execution: The language model chooses the appropriate action and executes it with the provided authentication.
Benefits
- Simplified API Integration: No need to read through API documentation or understand complex specifications
- Natural Language Interface: Describe what you want to do in plain English
- Automatic Tool Discovery: Find the right API endpoints without manual searching
- Language Model Ready: Tools are automatically formatted for use with OpenAI and other language models
Authentication
The tool search and execution process requires two types of authentication:
- Wild Card API Key: Used for searching and discovering actions
- Service API Key: Used for executing the discovered actions (e.g., Stripe API key)
Make sure to keep these API keys secure and never expose them in your code.