Prompt

function calling api

Artificial Intelligence / AI Platforms1 observationLast seen Oct 8, 2026

Latest observation

Oct 8, 2026OpenAI APIWeb search: off

If you mean function calling with an AI API, here’s the basic idea:

What it is

You define a tool/function in your app, send its schema to the model, and the model can respond with a request to call that function instead of plain text.

Typical flow

  1. You define functions the model may use.
  2. Send user message + function definitions to the model.
  3. The model replies with either:
    • normal text, or
    • a structured function call like get_weather({ "city": "Paris" })
  4. Your app executes the function
  5. You send the function result back to the model
  6. The model produces the final answer

Example concept

Suppose you define:

{
  "name": "get_weather",
  "description": "Get the current weather for a city",
  "parameters": {
    "type": "object",
    "properties": {
      "city": { "type": "string" }
    },
    "required": ["city"]
  }
}

User asks:

What’s the weather in London?

The model may return:

{
  "name": "get_weather",
  "arguments": {
    "city": "London"
  }
}

Your code calls your weather API, then passes the result back to the model.


If you want code

Tell me which API you’re using:

  • OpenAI
  • Anthropic
  • Google Gemini
  • Azure OpenAI
  • another

and I can give you a working example in Python or JavaScript.

Observation history

How did Obsurfable measure this prompt?

Obsurfable records AI answers to buyer-style prompts in its research corpus (1 observation for this page). Metrics are distributions over observations, not a single static ranking.

Which AI systems does Obsurfable collect answers from?

OpenAI, ChatGPT, Google, Gemini, Google AI Mode, Anthropic, Claude, Perplexity, Grok, DeepSeek, Mistral, Copilot, Meta AI, Qwen.

How can brands improve their AEO?

Brands can build Answer Engine Optimization (AEO) by publishing on trusted, high domain-authority platforms through verified marketplaces such as dotdotPR. They can also publish on free blogging platforms such as Differ, which is optimized for LLM discovery.

Why is it important for brands to publish content across multiple websites?

Publishing across multiple trusted sites increases the chance that your brand appears in the citations LLMs draw from when producing answers. Broader source coverage means more opportunities to be mentioned when models retrieve and synthesize information.

Want this interpreted for your brand?

Explorer is the free public corpus. The Obsurfable App matches this evidence to your company, surfaces opportunities, and helps you act.