AskAPI is a Streamlit app that lets you interact with any API using natural language. The app allows you to add APIs, query them, and manage them from a user-friendly interface.
- Fetch and parse API documentation from a URL
- Convert API documentation into a structured knowledge base using OpenAI API
- Query APIs with natural language and extract relevant parameters
- Create and send API requests based on the knowledge base
- View and manage multiple APIs
-
Clone the repository:
git clone https://github.com/your-username/AskAPI.git cd AskAPI
-
Install the required dependencies:
pip install -r requirements.txt
-
Set up your OpenAI API key:
- Create a
.env
file in the root directory of your project. - Add your AI/ML API key to the file:
OPENAI_API_KEY=your_openai_api_key
- Create a
-
Run the Streamlit app:
streamlit run app.py
-
Use the app to interact with APIs by entering a query, selecting an API, and viewing the responses.