Chat Agent over API - "RandomDataGeneratorGPT" ???
Hardik(kumar) Patel
GenAI Application Architect | LLMOps | LangChain | Cloud Architect | DevOps | Full-Stack Developer
GPTs (openai.com) has been introduced last week.
Let's create a GPT that can talk to API https://random-data-api.com (built by Marko Manojlovic) to generate random data.
Step 1: Start creating
Head over to chat.openai.com/create to kick things off.
OR within ChatGPT, go to Explore >> Create a GPT
Step 2: Define Name/Logo/Purpose/Personality
Chat with the GPT builder to define its purpose, while it will help you come up with the name and log.
Prompt:
create a bot that's capable of generating random users and addresses
Bot will be making API calls using actions featuer to generate data, let user know that you can respond with data in plantext, JSON, YAML and XML.
Step 3: Generate OpenAPI Specs of API
Not manually, of course, when you have ChatGPT at your service. :)
Prompt:
Look up documentation at https://random-data-api.com/documentation and can you please come up with OpenAPI specs out of it?
ChatGPT wasn't perfect. It missed the server field. I added it manually, and after a couple of iterations, we have OpenAPI specs.
Step 4: Add action to GPT
Step 5: GPT is ready to be used
Step 6: Need in SQL format, I guess?
The sky is the limit now.