Trinity AI Chatbot: Automating REST & GraphQL API Generation

Trinity, an AI chatbot built at Hackathon 2024, streamlines REST API & GraphQL generation using OpenAI APIs, voice commands, and file uploads.

Author

Prince Kumar Thakur
Prince Kumar ThakurTechnical Content Writer

Date

Jan 31, 2025

Table of Contents

Editor’s Note: This blog introduces Trinity, an AI-powered chatbot developed by Yuvraj Kumar, Dheeraj, and Surjeet Kumar during Hackathon 2024 by Geekians. It streamlines REST API generation, supports GraphQL, and utilizes OpenAI APIs for real-time query processing and chatbot interactions.

During the Hackathon 2024, our team built Trinity, an AI chatbot designed to simplify REST API generation while offering a seamless user experience. Identifying the challenges developers face when creating APIs, we developed a smart, AI-powered tool that eliminates redundant tasks and enhances workflow efficiency.

Trinity

How It Works

Trinity is built to assist users in efficiently generating REST APIs and GraphQL queries. Users can enter their queries manually or through voice commands, and the chatbot provides structured, actionable responses. The application supports file uploads, allowing users to integrate company-specific documents, which the AI can analyze and use to enhance query responses.

Trinity is powered by OpenAI APIs, which dynamically generate and optimize responses in real-time. The chatbot offers a history panel where users can view past queries, track responses, and revisit previous interactions. Users can also attach media files for enhanced interactivity, making it a multi-functional tool for API development and chatbot-driven engagement.

trinity work

Key Features

Trinity integrates multiple functionalities to improve the developer experience. It offers real-time API generation supporting both GraphQL and REST APIs with structured responses. Users can engage with the chatbot through text or voice input, making interactions seamless and efficient. The tool allows for media file uploads, enabling document parsing to enhance API recommendations. Query history management helps users keep track of their past interactions for easy reference. The UI is customizable with dark and light themes to provide an optimal user experience. The authentication system is secured using JWT with PostgreSQL for safe access. A drag-and-drop feature allows users to upload images and documents conveniently. Additionally, live response streaming ensures that interactions remain fluid without UI disruptions.

Live Demonstration

Users begin by logging into the application using secure JWT authentication. Once inside, the homepage displays a quick overview of previous chats, along with options to switch themes and manage user profiles. The chatbot interface supports typed queries, voice commands, and file uploads for API generation and query resolution.

For instance, if a developer wants to generate a Neo C program for prime numbers under 50, Trinity provides a structured response, complete with code snippets formatted in blocks for better readability. The system also supports stream-based responses, ensuring real-time data retrieval instead of waiting for the entire response to load.

For API developers, Trinity offers Swagger API testing, where users can test GET, POST, PATCH, and DELETE requests directly within the application. The chatbot assists by providing relevant suggestions based on the request type and user intent, ensuring an efficient workflow.

Why Trinity Matters

API development can be time-consuming, requiring multiple iterations and debugging. Trinity automates this process, allowing developers to focus on logic rather than setup. By integrating AI-driven automation, file parsing, and structured API generation, Trinity saves time and enhances productivity. Whether for developers, tech teams, or businesses, the chatbot delivers an intuitive, AI-powered API development experience.

Final Thoughts

Building Trinity during the Hackathon 2024 was an incredible journey. Our goal was to create a developer-friendly AI chatbot that enhances productivity, simplifies API generation, and supports seamless chatbot interactions. We are excited to refine and expand its capabilities in the future.


GitHub link for the project: https://github.com/yuvraj1905/trinity

SHARE ON

Related Articles.

More from the engineering frontline.

Dive deep into our research and insights on design, development, and the impact of various trends to businesses.

How We Built an AI System That Automates Senior Solution Architect Workflows
Article

Apr 6, 2026

How We Built an AI System That Automates Senior Solution Architect Workflows

Discover how we built a 4-agent AI co-pilot that converts complex RFPs into draft technical proposals in 15 minutes — with built-in conflict detection, assumption surfacing, and confidence scoring.

AI Code Healer for Fixing Broken CI/CD Builds Fast
Article

Apr 6, 2026

AI Code Healer for Fixing Broken CI/CD Builds Fast

A deep dive into how GeekyAnts built an AI-powered Code Healer that analyzes CI/CD failures, summarizes logs, and generates code-level fixes to keep development moving.

A Real-Time AI Fraud Decision Engine Under 50ms
Article

Apr 2, 2026

A Real-Time AI Fraud Decision Engine Under 50ms

A deep dive into how GeekyAnts built a real-time AI fraud detection system that evaluates transactions in milliseconds using a hybrid multi-agent approach.

Building an Autonomous Multi-Agent Fraud Detection System in Under 200ms
Article

Apr 1, 2026

Building an Autonomous Multi-Agent Fraud Detection System in Under 200ms

GeekyAnts built a 5-agent fraud detection pipeline that makes decisions in under 200ms — 15x cheaper than single-model systems, with full explainability built in.

Building a Self-Healing CI/CD System with an AI Agent
Article

Mar 31, 2026

Building a Self-Healing CI/CD System with an AI Agent

When code breaks a pipeline, developers have to stop working and figure out why. This blog shows how an AI agent reads the error, finds the fix, and submits it for review all on its own.

Maestro Automation Framework — Advanced to Expert
Article

Mar 26, 2026

Maestro Automation Framework — Advanced to Expert

Master Maestro at scale. Learn architecture, reusable flows, CI/CD optimization, and how to eliminate flakiness in production-grade mobile automation.Master Maestro at scale. Learn architecture, reusable flows, CI/CD optimization, and how to eliminate flakiness in production-grade mobile automation.

Scroll for more
View all articles