WhoBuilt

How Zapier Builds AI Products and Features with the Help of Braintrust

Nov 7, 2024· 15 min· 3.6K views·Watch on YouTube

Speakers

Olmo Maldonado of Zapier and Ankur Goyal of Braintrust explain how Zapier develops and evaluates AI products, sharing examples from their work together.

Zapier’s AI products and working approach

Olmo describes Zapier’s integrations with more than 7,000 apps and says the service handles over 10 million tasks per day. He highlights the AI Zap Builder and Zapier Copilot, and says the team aims to put prototypes in front of users early, then use evals to guide product decisions.

Turning product priorities into evals

Ankur says product managers helped define what the AI Zap Builder needed to get right, including triggers, actions, step order, support for the top 25 apps, and Zapier’s Paths and Filters. Zapier used synthetic data from its corporate account, hosted in Braintrust, and ran evals in CI and manually with logic based and LLM based graders.

Expanding coverage and investigating results

Braintrust’s observability helped the team inspect inputs, outputs, grader scores, and changes between runs. Ankur says the team grew from seven manually run unit tests to more than 800 continuous checks, improving accuracy by nearly 300%, while noting that accuracy was not yet 100%.

Tracing Copilot and comparing models

As Zapier moved from a single prompt to a chat based Copilot with multiple tools, traces helped developers inspect inputs, outputs, tokens, and response times. The team compared models and chose GPT-4 Turbo for its message router, accepting slower performance in exchange for accuracy guarantees.

Recovering performance after a model change

After switching to GPT-4o, eval scores fell below 80%, and the team traced 22 regressions to unexpected behavior around system prompts. They relaxed prompts tailored to GPT-3.5 Turbo and changed from functions usage to tool choice. After those adjustments, most scores rose, and stream based Copilot response time fell from about 14 seconds to 3 seconds.

Takeaways

  • Bring product managers into eval design so tests reflect product priorities.
  • Use representative data and continuous evals to catch regressions as changes ship.
  • Inspect failing examples and traces to identify whether prompts, tools, or models caused a regression.
  • Compare models against task specific scores and performance before adopting a change.
  • Treat evals as an ongoing feedback loop; improved accuracy still leaves room for further work.

Mentioned in this talk

Search inside this talk

What was claimed 10

  • founded
    CEO
    “That’s what led to Braintrust.”
    YouTube
    Verified6 sources· Talk, Web· archived
  • previously at
    Olmo Maldonado previously at Zapier
    “I’m from Zapier.”
    YouTube
    Verified2 sources· Talk, Web· archived
  • metric
    Zapier: Over 10 million tasks per day
    “we’re doing over 10 million tasks per day.”
    YouTube
    Unverified1 source· Talk
  • feature
    Central: Bot framework for making bots and connecting them to online apps
    “Central, in particular ... is a bot framework, so you can make your own bot and connect it to all of your apps online.”
    YouTube
    Unverified1 source· Talk
  • built
    “Here are the AI products that we’ve built. I’ll only talk about the first two: the AI Zap Builder and Zapier Copilot.”
    YouTube
    Unverified1 source· Talk
  • feature
    AI Zap Builder: Creates a Zap from a user prompt and supports field mapping
    “You give us a prompt ... and we’ll do our best to make a Zap for you.”
    YouTube
    Unverified1 source· Talk
  • uses
    for eval data, evaluation runs, and observability
    “We load that data from Braintrust, which hosts it, and run it in CI as well as manually.”
    YouTube
    Unverified1 source· Talk
  • metric
    Zapier: Improved accuracy by nearly 300%
    “This has helped us improve our accuracy by nearly 300%.”
    YouTube
    Unverified1 source· Talk
  • metric
    Zapier: Over 800 automated tests, up from seven manual unit tests
    “we’ve gone from just seven unit tests, run manually by developers, to over 800.”
    YouTube
    Unverified1 source· Talk
  • metric
    Microsoft Copilot: Stream response time reduced from around 14 seconds to 3 seconds
    “our stream-based Copilot took around 14 seconds; now it’s at 3 seconds”
    YouTube
    Unverified1 source· Talk

Related talks