MagiQL
MagiQL copied to clipboard
query GraphQL endpoints with natural language
MagiQL
Telegram bot that can send requests made with natural language to a GraphQL endpoint and process responses.
Made with https://github.com/MarcoWorms/RefactorGPT
Requirements
You need to have Docker installed on your machine.
Usage
- Build the Docker image (add your openAI and telegram keys, and also graphql endpoint):
docker build --build-arg GRAPHQL_ENDPOINT='your-graphql-endpoint' --build-arg OPENAI_API_KEY='your_openai_api_key' --build-arg TELEGRAM_BOT_TOKEN='your_telegram_bot_token' -t telegram-bot . - Run the Docker container:
docker run telegram-bot
/query insert your question hereis the main thing/query_infoprovides documentation on the endpoint schema (if you don't know the schemas you might ask for impossible queries and it will throw error saying it can't do it)
