🖥️
carter-js V2
  • carter-js
  • 💬Conversation
    • Say
    • Interactions
    • Opener
    • History
  • 🎱Skills
    • Basics
  • Other Features
    • Response Times
    • Personalise
  • More
    • Changelog
    • Further Reading
    • carter-py
Powered by GitBook
On this page
  1. Other Features

Response Times

View and measure your agent's response times.

The data returned from your carter agent contains a response time. carter-js contains two utility functions which allow you to retrieve this information in a couple of ways.

  • Carter.lastResponseTime() returns the response time of the latest interaction.

  • Carter.averageResponseTime(minutes) returns your agent's average response time over a given number of minutes. minutes is an optional argument, if not given then the function will return the average response time across the entire stored history.

// already created a carter object called carter

const lastResponseTime = carter.lastResponseTime()
const lastTenAverage = carter.averageResponseTime(10)

PreviousBasicsNextPersonalise

Last updated 2 years ago