/MagiQL

query GraphQL endpoints with natural language

Primary LanguagePythonCreative Commons Zero v1.0 UniversalCC0-1.0

MagiQL

image

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

  1. 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 .
  2. Run the Docker container: docker run telegram-bot
  • /query insert your question here is the main thing
  • /query_info provides 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)

Examples

image

image