/weathergpt

Primary LanguageTypeScript

OG Image

WeatherGPT

A ChatGPT Plugin starter template built with Next.js 13 App Router, Edge Functions, and Vercel

Introduction · Features · Try the Plugin · Deploy Your Own · Read the blog post


Introduction

WeatherGPT is a ChatGPT Plugin to get the weather of any given location.

WeatherGPT-small.mp4

It can also make appropriate recommendations of what outfits to wear given the weather.

CleanShot 2023-04-13 at 13 16 45

Features

  • AI-Plugin & OpenAPI JSON specs
  • Returns a link to a dynamic Next.js route
  • Nextjs 13 App Router
  • Edge Route Handlers for returning weather data
  • Metadata API for SEO tags
  • ImageResponse API for dynamic OG images at the edge

Try the Plugin

If you have access to Plugins, you can try this plugin out!

  1. Go to the Plugin Store
  2. Click "Install an unverified plugin"
  3. Enter "weathergpt.vercel.app"
  4. Click "Install".
CleanShot.2023-04-13.at.12.23.52.mp4

Deploy Your Own

You can deploy your own hosted version of this plugin to Vercel with one-click:

Deploy with Vercel

Once you're done, don't forget to change all instances of weathergpt.vercel.app in the codebase to your app's URL:

CleanShot 2023-04-14 at 17 23 32

To add your newly deployed Plugin to ChatGPT, follow the steps from Try the Plugin above, but instead of clicking on "Install an unverified plugin", select "Develop your own plugin" instead. Note that you'll need access to develop ChatGPT Plugins to be able to do this.

CleanShot 2023-04-14 at 17 21 56