Prompt Buddy logoPrompt Buddy

cloudflare · Cloudflare Workers Docs

Openai Function Calls Workers OpenAI GPT function calling with JavaScript and Cloudflare Workers

A step-by-step tutorial for building a Cloudflare Worker that integrates with OpenAI's function calling API to fetch and process real-time website content using Cheerio.

Import to Prompt Buddy

Derived skill

Files assembled from official documentation

Viewing SKILL.md

Openai Function Calls Workers OpenAI GPT function calling with JavaScript and Cloudflare Workers

A step-by-step tutorial for building a Cloudflare Worker that integrates with OpenAI's function calling API to fetch and process real-time website content using Cheerio.

When To Use

Use when you need to implement a workflow where an LLM triggers external tool execution via Cloudflare Workers to retrieve real-time web data.

Reference Files

FileContainsUse For
SKILL.mdEntry point: scope, routing table, and workflow.Start here.
docs/workers-openai-function-calls-gpt-calling-with-javascript-and-cloudflare-workflow-guide.mdA tutorial guide for implementing OpenAI function calling within a Cloudflare Workers environment using JavaScript.Questions about a tutorial guide for implementing OpenAI function calling within a Cloudflare Workers environment using JavaScript.
examples/workers-openai-function-calls-gpt-calling-with-javascript-and-cloudflare.textA JavaScript implementation demonstrating how to integrate OpenAI function calling within a Cloudflare Workers environment.Exact payloads, commands, or snippets shown in A JavaScript implementation demonstrating how to integrate OpenAI function calling within a Cloudflare Workers enviro...
examples/workers-openai-function-calls-gpt-calling-with-javascript-and-cloudflare-2.textA JavaScript implementation demonstrating how to integrate OpenAI function calling within a Cloudflare Workers environment.Exact payloads, commands, or snippets shown in A JavaScript implementation demonstrating how to integrate OpenAI function calling within a Cloudflare Workers enviro...
examples/workers-openai-function-calls-gpt-calling-with-javascript-and-cloudflare-3.textA JavaScript implementation demonstrating how to integrate OpenAI function calling within a Cloudflare Workers environment.Exact payloads, commands, or snippets shown in A JavaScript implementation demonstrating how to integrate OpenAI function calling within a Cloudflare Workers enviro...
examples/workers-openai-function-calls-gpt-calling-with-javascript-and-cloudflare-4.textA JavaScript implementation demonstrating how to integrate OpenAI function calling within a Cloudflare Workers environment.Exact payloads, commands, or snippets shown in A JavaScript implementation demonstrating how to integrate OpenAI function calling within a Cloudflare Workers enviro...
examples/workers-openai-function-calls-gpt-calling-with-javascript-and-cloudflare-5.textA JavaScript implementation demonstrating how to integrate OpenAI function calling within a Cloudflare Workers environment using the openai and cheerio libraries.Exact payloads, commands, or snippets shown in A JavaScript implementation demonstrating how to integrate OpenAI function calling within a Cloudflare Workers enviro...
examples/workers-openai-function-calls-gpt-calling-with-javascript-and-cloudflare-6.textA JavaScript implementation demonstrating how to integrate OpenAI function calling within a Cloudflare Workers environment using the openai and cheerio libraries.Exact payloads, commands, or snippets shown in A JavaScript implementation demonstrating how to integrate OpenAI function calling within a Cloudflare Workers enviro...
examples/workers-openai-function-calls-gpt-calling-with-javascript-and-cloudflare-7.textA JavaScript implementation demonstrating how to integrate OpenAI function calling within a Cloudflare Workers environment using the openai and cheerio libraries.Exact payloads, commands, or snippets shown in A JavaScript implementation demonstrating how to integrate OpenAI function calling within a Cloudflare Workers enviro...
examples/workers-openai-function-calls-gpt-calling-with-javascript-and-cloudflare-8.textA JavaScript implementation demonstrating how to integrate OpenAI function calling within a Cloudflare Workers environment using the OpenAI and Cheerio libraries.Exact payloads, commands, or snippets shown in A JavaScript implementation demonstrating how to integrate OpenAI function calling within a Cloudflare Workers enviro...
examples/workers-openai-function-calls-gpt-calling-with-javascript-and-cloudflare-9.textA JavaScript implementation for a Cloudflare Worker that integrates OpenAI GPT function calling capabilities.Exact payloads, commands, or snippets shown in A JavaScript implementation for a Cloudflare Worker that integrates OpenAI GPT function calling capabilities.
examples/workers-openai-function-calls-gpt-calling-with-javascript-and-cloudflare-10.textA JavaScript implementation demonstrating how to integrate OpenAI function calling within a Cloudflare Workers environment.Exact payloads, commands, or snippets shown in A JavaScript implementation demonstrating how to integrate OpenAI function calling within a Cloudflare Workers enviro...
examples/workers-openai-function-calls-gpt-calling-with-javascript-and-cloudflare-11.textA JavaScript implementation of a Cloudflare Worker that integrates with OpenAI's function calling capabilities.Exact payloads, commands, or snippets shown in A JavaScript implementation of a Cloudflare Worker that integrates with OpenAI's function calling capabilities.
examples/workers-openai-function-calls-gpt-calling-with-javascript-and-cloudflare-12.textA JavaScript implementation demonstrating how to integrate OpenAI function calling within a Cloudflare Workers environment.Exact payloads, commands, or snippets shown in A JavaScript implementation demonstrating how to integrate OpenAI function calling within a Cloudflare Workers enviro...
examples/workers-openai-function-calls-gpt-calling-with-javascript-and-cloudflare-13.textA JavaScript implementation demonstrating how to integrate OpenAI function calling within a Cloudflare Workers environment.Exact payloads, commands, or snippets shown in A JavaScript implementation demonstrating how to integrate OpenAI function calling within a Cloudflare Workers enviro...
examples/workers-openai-function-calls-gpt-calling-with-javascript-and-cloudflare-14.textA JavaScript implementation for a Cloudflare Worker that integrates OpenAI function calling to process user messages.Exact payloads, commands, or snippets shown in A JavaScript implementation for a Cloudflare Worker that integrates OpenAI function calling to process user messages.
examples/workers-openai-function-calls-gpt-calling-with-javascript-and-cloudflare-15.textA JavaScript implementation demonstrating how to integrate OpenAI function calling within a Cloudflare Workers environment.Exact payloads, commands, or snippets shown in A JavaScript implementation demonstrating how to integrate OpenAI function calling within a Cloudflare Workers enviro...
examples/workers-openai-function-calls-gpt-calling-with-javascript-and-cloudflare-16.textA JavaScript implementation demonstrating how to handle OpenAI tool calls within a Cloudflare Workers environment.Exact payloads, commands, or snippets shown in A JavaScript implementation demonstrating how to handle OpenAI tool calls within a Cloudflare Workers environment.
examples/workers-openai-function-calls-gpt-calling-with-javascript-and-cloudflare-17.textA JavaScript implementation demonstrating how to integrate OpenAI function calling within a Cloudflare Workers environment.Exact payloads, commands, or snippets shown in A JavaScript implementation demonstrating how to integrate OpenAI function calling within a Cloudflare Workers enviro...

What This Skill Covers

  • In this tutorial, you will build a project that leverages OpenAI's function calling ↗ feature, available in OpenAI's latest Chat Completions API models.
  • Main sections: Tags, What you will learn, Before you start, 1\. Create a new Worker project, 2\. Make a request to OpenAI.

Workflow

  1. Open the most relevant file under docs/ for the exact documented workflow and wording.
  2. Open schemas/ files for exact structured contracts.
  3. Open examples/ files for concrete requests, commands, snippets, and manifests.
  4. Do not add behavior or configuration that is not present in the attached source files.

Canonical source: https://developers.cloudflare.com/workers/tutorials/openai-function-calls-workers