Plugins and integrationsReviewed · Pydantic

DayAI for Pydantic AI Harness

DayAI is a connector for Python developers adding Day AI customer data to their agents, but it requires a paid Day AI Agent tier and can expose tools that change records. The Pydantic AI Harness capability uses OAuth and Model Context Protocol (MCP) to search and update CRM records, read meeting context and draft emails. Developers can configure per-user credentials, tool filtering and approval requests.

Researched 15 Nov 2026

In short.

DayAI is a Python connector for developers building agents around Day AI customer records, but paid access is required and tools can modify workspace data. It connects Pydantic AI agents to Day AI's hosted MCP server using OAuth tokens, with support for per-user credentials and application-managed approvals. The server does not label tools as read-only, so restricting actions requires explicit configuration. The documentation explains setup and migration risks, but provides no execution results or reliability measurements. Exact pricing, the available tool inventory and license terms are unknown.

Researched and written by an AI model and checked by a second AI model. How it works

Covers the complete supplied page at [https://pydantic.dev/docs/ai/harness/day-ai/index.md], including authentication, paid-tier requirements, installation, per-user credentials, naming migration, approvals, connection customization, telemetry, declarative configuration and the API reference. The 0.x API-change notice and durable-run migration caveats are included. Linked pages, repository files and the live Day AI service are outside scope. Nothing was installed or executed; live behavior, exact prices, license terms and measured performance remain unknown.

The overview

identity

DayAI is a capability imported from pydantic_ai_harness that connects a Pydantic AI agent to Day AI's hosted customer relationship management tools. Its documentation is at [https://pydantic.dev/docs/ai/harness/day-ai/index.md]. Access operates within the signed-in user's Day AI workspace and permissions.

assessment

The documented integration is a plausible fit for developers who already use Day AI and want a Python agent to retrieve customer context or perform CRM actions. Installation, authentication and approval examples make the integration effort reasonably concrete.

Adoption still requires decisions about token management and which actions the agent may perform. No installation, authentication flow or tool call was executed, so operational reliability, response quality and account isolation have not been independently verified.

users

The primary audience is Python developers building agents for Day AI users. A personal script can use one fixed account token; an application serving multiple users can resolve a different token for each run.

Beginners need familiarity with Python packages, environment variables and OAuth sign-in. Application developers also need to implement token storage and refresh, and handle deferred approval requests if they enable approvals.

capabilities

The page describes searching and updating CRM records, reading meeting context and drafting emails. It also states that available tools can change records and send notifications. The exact tool list depends on the user's paid tier and workspace role; individual server tools are not enumerated.

Configuration supports per-user authentication, tool-name prefixes, on-demand loading, toolset filtering and approval wrappers. A separate tool-output limiter can cap returned content. Agents can also be declared in YAML or JSON.

Using it

requirements

Day AI MCP requires a paid Day AI Agent tier and an OAuth access token. There is no API key to copy. The documented authorization flow supports authorization-server discovery and dynamic client registration through an MCP OAuth client library.

The Python integration needs the day-ai extra for pydantic-ai-harness and a provider package for the chosen model. Minimum Python and package versions, exact workspace permissions, hardware requirements and tier-specific limits are not established by this page.

mechanism

The capability connects to the hosted MCP endpoint at [https://day.ai/api/mcp] using an OAuth token. MCP exposes server tools to the agent; their names receive the day_ai_ prefix by default. Toolset filters and approval rules must use the names visible to the agent, including that prefix.

An authentication callback runs at the start of each agent run and returns that run's token. Returning None or an empty string gives that run no Day AI tools, without falling back to the environment token. The documented design therefore supports selecting credentials from each user's run dependencies.

The capability emits no telemetry spans of its own. Pydantic AI core instrumentation records Day AI calls as tool spans.

setup

The documented OpenAI installation command is pip install "pydantic-ai-harness[day-ai]" "pydantic-ai-slim[openai]". An equivalent uv add command is provided. Another model requires its corresponding provider extra. YAML loading additionally requires pydantic-ai-slim[spec].

Supply an OAuth token through DAY_AI_ACCESS_TOKEN or auth. For local use, auth='oauth' opens browser sign-in. A multi-user application should obtain, store and refresh each user's token, then supply it through a synchronous or asynchronous authentication callback.

To request approval for every tool call, the example wraps capability.get_toolset() with approval_required() and includes DeferredToolRequests in the agent's output types. The application must handle those requests through the deferred tools workflow.

example

The introductory example constructs Agent('openai:gpt-6.1-sol', capabilities=[DayAI()]) and calls run_sync with the question 'Which Day AI opportunities are in the proposal stage?' It then prints result.output.

This illustrates a CRM lookup using the configured account. The page supplies no returned records, model response or correctness measurements, so the example establishes intended usage rather than a demonstrated outcome.

Assessment & evidence

limitations

Day AI's server marks no tools as read-only, so DayAI has no read_only option. The agent receives all tools allowed by the account's tier and role, including tools that can change records and send notifications. Inbound email and meeting notes can contain external text that influences subsequent tool calls; filtering and approval controls need explicit configuration.

Browser-based OAuth is documented for local use only. A custom client owns its connection URL and authentication, cannot be combined with auth, and is shared across runs. Multiple DayAI instances need distinct identifiers and prefixes to represent separate connections without conflicts.

For Temporal execution, the page warns that dependencies are stored in workflow history. It recommends encrypting that history with a payload codec before placing tokens there.

reasoning

The documented features suggest the strongest fit is an existing Day AI deployment whose developers want to add agent access within a Python application. Per-run token resolution supports that application model, while toolset wrappers offer a place to enforce approval decisions.

The main tradeoff is that a short connection example leaves substantial application responsibilities: OAuth lifecycle management, user-specific credentials and control over actions. Suitability for unattended changes cannot be established without knowing the actual tools, permissions and application controls.

alternatives

Within this integration, a custom FastMCP client or transport is an option when developers need a proxy or MCP handlers. It gives connection control but represents one connection shared across runs. The page also permits replacing the example's OpenAI model with another provider and its matching package extra.

No competing CRM connector or alternative service is evaluated. Relative features, pricing and reliability across products are unknown.

evidence

The evidence is the complete DayAI documentation page at [https://pydantic.dev/docs/ai/harness/day-ai/index.md]. It provides installation commands, authentication behavior, usage examples, migration guidance and an API reference.

Behavioral claims come from that documentation. The supplied material contains no execution logs, benchmarks, independent evaluations or live server inventory. Linked documentation and repository contents were not included.

Access & freshness

costs

A paid Day AI Agent tier is required. Its subscription price, included usage, quotas and any overage charges are unknown from the supplied page.

The examples also use a separately configured model provider. Model usage charges and any application hosting costs are not quantified, so a total operating cost cannot be calculated.

rights

The page links to implementation source at [https://github.com/pydantic/pydantic-ai/tree/main/src/pydantic_ai_harness/pydantic_ai_harness/day_ai/], but includes no license text. Permission to reuse or redistribute the implementation or documentation is therefore unknown from the supplied evidence.

Workspace roles constrain tool access. Data ownership terms, retention rules, hosting location and contractual permissions for processing CRM content are not established.

freshness

The page was captured on 15 November 2026. It does not identify an exact package release or its own publication date. It warns that Pydantic AI Harness APIs may change between minor releases while on 0.x.

The page documents a migration from unprefixed tool names to day_ai_ names. Existing filters, approval rules and guardrails must be updated: rules matching old names can stop applying. Keeping tool_prefix=None preserves the previous names.

Recorded Temporal or DBOS runs can fail to replay when their stored tool calls use old names. The documented options are to finish those runs first, retain the old naming temporarily, or deploy through worker or application versioning.

actions

Before adoption, confirm the account's Agent tier, actual tools, role permissions, limits and pricing. Choose fixed credentials for a single-account script or a run-context callback for an application serving multiple users, and implement token storage and refresh.

Configure tool filtering and approvals for the intended tasks, then verify that rules match the prefixed names. Handle deferred approval requests explicitly. For durable execution, account for replay compatibility and encrypted token storage in workflow history.

Validate the intended CRM journey and user credential separation in a controlled environment before relying on the integration. No such validation results are available in the supplied evidence.

Evidence for this report

selected-page.txtselected · checked 2026-11-15