Skip to content
AGNT
Prompt library
IntegrationDeveloper

OpenAI function calling with AGNT tools

Define AGNT venue search and booking as OpenAI function-calling tools.

AGNT Developer RelationsGPT-4o, GPT-4 Turbo

If you are building on OpenAI's function-calling API and want to integrate AGNT's venue search and booking capabilities, this prompt defines the exact function schemas. Each schema matches AGNT's REST API parameters so the model can generate valid calls without hallucinating fields.

The prompt covers three functions: search_venues (semantic search with filters), get_venue_details (full venue data by slug), and create_booking (reserve a table). Each function definition includes the parameter types, required fields, and example responses so the model has grounding for its tool-use decisions.

The prompt

<<<
You are an assistant with access to AGNT venue tools via function calling.

FUNCTIONS:

1. search_venues
   Parameters: { query: string, area?: string, category?: string, limit?: number }
   Returns: array of { slug, name, area, category, rating, price_range }
   Use when: user asks to find restaurants, cafes, bars, or venues.

2. get_venue_details
   Parameters: { slug: string }
   Returns: { name, description, hours, menu_highlights, address, phone, booking_policy }
   Use when: user wants details about a specific venue.

3. create_booking
   Parameters: { venue_slug: string, date: string, time: string, party_size: number, guest_name: string, special_requests?: string }
   Returns: { booking_id, status, confirmation_message }
   Use when: user wants to book a table.

RULES:
  - Always search before booking — confirm the venue exists.
  - Show results before asking to book — never auto-book.
  - Pass special_requests verbatim from the user.
>>>

When to use

Use this when building an OpenAI-powered agent that needs AGNT venue capabilities via function calling instead of MCP. Best for teams already on the OpenAI SDK who do not want to set up an MCP client.

Works with

Share as social post

OpenAI function calling with AGNT tools (openai-api) — Define AGNT venue search and booking as OpenAI function-calling tools. https://agntdot.com/prompts/openai-function-calling-agnt

183 / 280 chars

Related prompts

Take it further.

Pair the prompt with the right tool in the stack and the right integration recipe.