Cointegrity

Function Calling / Tool Use

Web3 / ai data

Function calling enables AI models to invoke external functions, APIs, or smart contracts to perform actions beyond generating text. Rather than simply providing answers, these models can request that specific operations be executed—such as querying blockchain data, executing transactions, or fetching real-time information from external systems. This capability transforms AI from a passive information provider into an active agent capable of interacting with Web3 infrastructure, automating workflows, and integrating seamlessly with decentralized protocols and on-chain data sources.

Example

OpenAI's GPT-4 with function calling can be configured to call a smart contract function that checks token balances, enabling a chatbot to answer user questions about their wallet holdings by directly querying the blockchain rather than relying on pre-trained knowledge.

Why It Matters

Function calling is essential for building autonomous agents in Web3 that can execute transactions, query smart contracts, and interact with DeFi protocols without human intermediation. This capability bridges AI reasoning with actual on-chain execution, enabling sophisticated automation and trustless agent-based services.

Category: ai data

Definition maintained by Cointegrity. See our editorial policy for review standards on regulatory and compliance terms.

Explore the full Web3 Glossary — 2,085+ expert-curated definitions. Need guidance? Talk to our consultants.