GPT Function Calling: Building an AI Stock Screener

In this video tutorial, we'll walk through how to use GPT's new function calling capability to convert natural language into a stock screening API call.

10 months ago   •   8 min read

By Peter Foy

In this video tutorial, we'll walk through how to use GPT 3.5/4's new function calling capability. In particular, we'll discuss how to convert natural language into an API call at Financial Modeling Prep's stock screener endpoint.

As OpenAI writes:

Developers can now describe functions to gpt-4-0613 and gpt-3.5-turbo-0613, and have the model intelligently choose to output a JSON object containing arguments to call those functions.
This is a new way to more reliably connect GPT's capabilities with external tools and APIs.

In this example, we'll use the GPT model to both convert natural language into an API call and then summarize the results back the user.

This is the video companion to this article and includes all the code and a walkthrough of how to implement it.


This content is only available to subscribers

Subscribe now and have access to all our stories, enjoy exclusive content and stay up to date with constant updates.

Sign up now

Spread the word

Keep reading