LlamaIndex + Connect AI
Build ReAct agents that reason across live business data. LlamaIndex wraps Connect AI’s MCP tools as native functions, works with OpenAI and Anthropic out of the box.
from llama_index.core.agent.workflow import ReActAgent
from llama_index.core.tools import FunctionTool
# Wrap Connect AI MCP tools for the ReAct agent
tools = [FunctionTool.from_defaults(fn=t)
for t in mcp_client.list_tools()]
agent = ReActAgent(tools=tools, llm=llm)
response = await agent.run(
"Which accounts had the most support "
"tickets last quarter?"
)
print(response)
Developer guide
Full step-by-step guide to building a production-ready LlamaIndex ReAct agent with Connect AI MCP.
Sources for LlamaIndex
Common LlamaIndex + source patterns. Tap any combination to see the tutorial.
Sample agent
A polished LlamaIndex ReAct reference. Looking for a quick start in a different framework? See the npx scaffold (LangChain, Google ADK, or Vercel AI SDK).
Production-ready LlamaIndex ReAct agent with Connect AI MCP, multi-turn context, and support for OpenAI and Anthropic LLMs.
Evaluating Connect AI for your team? Learn more about Connect AI.
Full API reference, authentication guides, and configuration details.