Call OpenAI GPT

This simple Contextual flow demonstrates how to call OpenAI's GPT via API to retrieve custom responses back.

Call OpenAI GPT

This simple Contextual flow demonstrates how to call OpenAI's GPT via API to retrieve custom responses back.

This catalog service provides a pre-configured Contextual flow and the format for a required API connection to OpenAI (which will require your custom credentials) in order to demonstrate calling the OpenAI GPT API from within a flow. In this case a simple payload is assembled and passed in from test/sample data and the result is simply logged. This flow can be tested within the flow editor by initiating the inject button, or it could be bound to an agent and called from within another flow, via a trigger or through an action. In each case those events would begin with distinct data to be handled and assembled into the prompt.

Components

Using this template will create the following components in this tenant. You can rename them if needed when you use the template.

0 Agents

1 Flows

Call GPT Example Flow

0 Object Types

1 Connections

OpenAI Chat Completion API

Comprehensive Docs

Each Service Template is thoroughly documented in the Contextual Documentation with information on what’s included in the template, how to get started, and code samples.

Check out the docs

Third Party Documentation

Sometimes it is valuable to provide links to external service documentation in addition to or instead of the Contextual Documentation.  

Check out the 3rd party docs
Abstract image depicting external documentation

Looking for something else?

The catalog of solutions is growing all the time. Check out the current Service Template Catalog.

Browse the entire catalog

If you don't see an integration for a service or platform you're interested in, have a question about development on Contextual, or are interested in adding your product or service to the Contextual Service Catalog - contact us and let us know!

We design, build, and operate your AI solution

Purpose built to your business
Delivered on our platform
Enterprise-ready scale