Prompt Chain

Get Weather Forecasts from Weather.gov

GPT Action Library guide connecting a Custom GPT to Weather.gov's public API for natural-language weather forecasts, no auth required.

Works with weather.gov

75
Spark score
out of 100
Updated last month
Version 1.0.0
Models

Add to Favorites

Why it matters

Leverage ChatGPT's natural language capabilities to query and retrieve weather forecasts from Weather.gov. This asset translates user location requests into actionable weather data.

Outcomes

What it gets done

01

Connect ChatGPT to the Weather.gov API.

02

Convert user location queries into WFO, x, and y coordinates.

03

Retrieve and present weather forecasts based on location.

04

Enable users to plan activities based on weather patterns.

Install

Add it to your toolbox

Run in your project directory:

curl -fsSL https://spark.entire.vc/get/oai-gptactiongettingstarted | bash

Steps

Steps in the chain

01
Familiarize with GPT Actions Documentation
02
Understand Weather.gov Integration
03
Set Authentication to None
04
Review Application Documentation
05
Add Custom GPT Instructions
06
Add OpenAPI Schema

Overview

GPT Action Library: Getting Started (Weather.gov)

Connects a Custom GPT to Weather.gov's public API, resolving a location to WFO/grid coordinates to return a weather forecast. Use when a Custom GPT needs natural-language weather forecasting via a free, no-auth public API.

What it does

This GPT Action Library entry shows how to connect a Custom GPT to Weather.gov's public weather forecast API. The Action takes a user's question about a location, converts the location's latitude/longitude into a weather forecast office (WFO) plus x/y grid coordinates, then converts those three values into an actual weather forecast. Because Weather.gov is a public API, authentication is set to "None" when configuring the GPT Action.

When to use - and when NOT to

Use this when you want a Custom GPT that can answer natural-language weather questions and help users plan their day or visualize forecasted conditions, without needing to manage any API keys or authentication. It is scoped specifically to Weather.gov's forecast data via its public API - it is not a general-purpose weather integration for other providers.

Inputs and outputs

Input: a user's natural-language question about weather at a given location. Output: a weather forecast for that location, derived by resolving the location to a WFO and grid x/y coordinates and querying Weather.gov's forecast endpoint.

Integrations

Uses the Weather.gov public API (documented at weather.gov/documentation/services-web-api) with no authentication required. Setup follows the standard GPT Action Library pattern: create a Custom GPT, paste the provided Instructions into the Instructions panel, and paste the provided OpenAPI schema into the Actions panel.

Who it's for

Developers building a Custom GPT that needs to answer weather questions or produce weather-based planning/visualization for users, using a free public data source with no auth setup.

Source README

GPT Action Library: Getting Started (Weather.gov)

Introduction

This page provides an instruction & guide for developers building a GPT Action for a specific application. Before you proceed, make sure to first familiarize yourself with the following information:

This particular GPT Action provides an overview of how to connect to a Weather.gov weather forecast. This Action takes a user’s question about a location, converts the lat-long into a weather forecast office (WFO), x, and y coordinates, then converts those 3 values into a weather forecast.

Note: When setting up the GPT Action, for authentication, leave it with "None". This is a public API and does not require any Authentication

Value + Example Business Use Cases

Value: Users can now leverage ChatGPT's natural language capability to forecast the weather

Example Use Cases:

  • Users can plan out their day based on weather patterns
  • Users can quickly visualize (including graphs) what the weather is forecasted to look like

Application Information

Application Key Links

Check out these links from the application before you get started:

ChatGPT Steps

Custom GPT Instructions

Once you've created a Custom GPT, copy the text below in the Instructions panel. Have questions? Check out Getting Started Example to see how this step works in more detail.

OpenAPI Schema

Once you've created a Custom GPT, copy the text below in the Actions panel. Have questions? Check out Getting Started Example to see how this step works in more detail.

FAQ & Troubleshooting

Are there integrations that you’d like us to prioritize? Are there errors in our integrations? File a PR or issue in our github, and we’ll take a look.

FAQ

Common questions

Discussion

Questions & comments · 0

Sign In Sign in to leave a comment.