Report on conversations in a date range, on every channel
GET /Platform/reporting/conversations
Report on conversations in a date range, on every channel.
Groups episodes (calls, chat sessions, email/SMS exchanges) that
ended in the range by handler, by person, by topic, by channel, by
the number/address/chat surface reached, by the path contacts took,
by day or week and by hour of the week, with the same totals for the
period just before. calls in each group counts episodes;
conversations counts the distinct conversations they belong to.
Definitions used throughout:
- reached: a handler started ringing, playing, or was handed the conversation.
- answered: a person or agent took it. A phone line counts when it picked up and the outcome is not voicemail, no answer, busy or failed; staff count at their first reply.
- time to answer: seconds from reached to answered; for staff in chat, email and SMS, time to first reply.
- resolved: the request was completed in that segment.
- handed off: another handler followed.
- outcomes and topics: the analysis as it was when the episode was
analysed;
analysedsays how many episodes have one.
Read-only; filters narrow every section at once.
Query parameters
since: datetime. Start of the range (inclusive, ISO 8601); episodes count by when they ended.until: datetime. End of the range (exclusive, ISO 8601); at most 92 days aftersince.channel: optional List[Any]. Only these channels (voice, chat, email, sms); repeat for several.touchpoint_type: optional str. Entity type of the number, address or chat surface reached (TelnyxPhoneNumber, EmailAddress, ChatFlow, ...).touchpoint_id: optional str. Its id; used together withtouchpoint_type.contact: optional str. Only episodes with this contact number or email address.direction: optional "inbound" or "outbound". Only inbound or only outbound episodes.handler_type: optional "Agent" or "Party" or "PhoneTree". Entity type of a handler to narrow to: Agent, PhoneTree, or Party for a person (heard, replied, or reached on a line that reaches only them).handler_id: optional str. Id of that handler; used together withhandler_type.number: optional str. A phone line (E.164) a transfer reached.handler_kind: optional "agent" or "phone_line" or "phone_tree" or "voicemail" or "auto_response" or 3 more. Only episodes with a segment of this kind, and only those segments in the handler table.topic: optional str. Only episodes with this topic.min_duration: optional float. Only episodes at least this many seconds long.bucket: optional "day" or "week". Group the time series by day or week; defaults to week for ranges over 45 days.include_simulated: optional bool. Include simulated (test) conversations.read_branch: optional str. Only one side of a live-traffic experiment: the experiment branch for conversations it handled, ormainfor its control group. Unset counts every conversation.routing_rule: optional str. Only contacts whose first handler was chosen by this routing rule:defaultfor the default action, or the rule's position (0 is the first rule).
Returns
CallReport
since: datetime. Range start (inclusive).until: datetime. Range end (exclusive).bucket: str. day or week.timezone: str. Timezone used for buckets and hours.truncated: optional bool. True when the range had more calls than one report reads; narrow the range.totals: CallReportGroup. Totals for every call in the range.previous: CallReportGroup. The same-length range just before, for deltas.people_identified: optional float or null. Share of answered phone-line segments where at least one person was identified.by_handler: optional List[HandlerReport]. One row per handler (agent, phone line, phone tree, voicemail), most reached first.by_person: optional List[PersonReport]. One row per person heard on phone-line segments.by_path: optional List[PathReport]. The most common sequences of handlers callers went through.by_topic: optional List[CallReportGroup]. Totals per topic, most frequent first; an episode with two topics counts in both.by_channel: optional List[CallReportGroup]. Totals per channel (voice, chat, email, sms).by_touchpoint: optional List[CallReportGroup]. Totals per number, email address or chat surface the contact reached; key is Type---id.by_bucket: optional List[CallReportGroup]. Totals per day or week, in order.by_hour: optional List[HourCell]. Calls and unanswered segments per hour of the week.
Example request
curl -X GET "https://api.hilus.ai/Platform/reporting/conversations" \
-H "Authorization: Bearer $HILUS_API_KEY"