Importing data

On this page

People, volume history, forecasts, time off, shifts and agent states can come from a spreadsheet saved as CSV, up to 5 MB a file. Every import shows what it will do before anything changes, and the latest one can be undone (a shift import, until its draft is used). Employee numbers match in upper or lower case, in every import: rs-1001 is RS-1001. Each import page has a template to download, or start from the import template, one workbook with a tab for each, examples, and what each column means: for 15-minute or 30-minute intervals.

People

  • Matched by employee_number: a new number adds a person, kept as it's written, and a known one updates them. Blank cells leave what's there.
  • Columns: employee_number, first_name, last_name, email, site, team, employment_type (full_time, part_time, temporary), hired_on, lobs (names or codes, separated by semicolons), client (only when several clients use the same line of business's name or code), max_weekly_hours, days_per_week, acd_id, acd_source, fixed_day_off (a weekday, like Wednesday, or none, where their line of business keeps one fixed day off a week), labor_rules (only for someone who works under a different law from their site: a rule set's name or code, like Ontario or CA-ON, or site to put them back on their site's), status (active or inactive), left_on (their first day not working, which records them as leaving, as from their page).
  • left_on keeps their schedule under Attrition to the end of that week, or only to that day, as an admin sets under Settings → Organization. The same date again changes nothing and another date moves it; a blank left_on leaves leaving as it is, so someone who isn't leaving after all is put back on their page. For someone active in status, a date gone by or before their hire date is an old one, as HR keeps after a rehire: it's skipped, with a note, and the rest of their row imported. Otherwise a date before their hire date is refused. Inactive without a date makes them inactive. Those leaving or made inactive go first, so their seats free up for new hires. Your HR system can send the same over the API.
  • Someone who signs in as staff isn't recorded as leaving by an import, whoever imports it: an admin does that on their page, and the import lists them.
  • Sites, teams and lines of business must exist first. ACD IDs belong to your connection (Settings → Connections); with several connections, name one in acd_source.
  • To change many people at once, Download CSV on the People page gives everyone you can see in these columns, filled in with what Erlangly has. Change it and import it back: a row left as it was changes nothing. See People and teams.

Volume history

  • One row per interval: interval_start, lob (name or code) or queue (an ACD queue ID; where queues on two connections share one, name the connection in acd_source), contacts and aht_seconds (the handle time: without it a forecast has contacts but can't work out the agents they need), and optionally abandons.
  • Times are in the line of business's time zone unless they carry an offset. Several queues of one line of business are added together; importing an interval again replaces it.
  • A row that repeats another's line of business, interval and queue, as when two exports overlap, is counted once, not added on top: where the figures differ, the last row's are used. A queue's rows that differ in another column, like a channel or a media type, are added together. Without a queue column, only the very same row twice counts once, so give each queue its own queue ID when two queues can have the same figures. The preview lists them, and the API does the same.
  • For service level and answer rate on Intraday, optional columns: answered, answered_in_target and short_abandons, with target_seconds and short_abandon_seconds if your ACD counted them against other times than the line's target. They're added up over a line's queues where every queue has them.
  • Six weeks of history make a good forecast; eight or more is better. The API takes the same rows.

Forecasts

  • For a new program, or a forecast your client sends. One row per interval: lob (code or name), interval_start, contacts (decimals are fine) and aht_seconds (the handle time: without it the agents can't be worked out). One file can hold several lines of business; add client when two clients have the same code.
  • Each line of business gets a draft forecast, from its first day in the file to its last, to check and publish like a calculated one. Until it's published, the live forecast doesn't change.
  • Starts fall on your organization's intervals, from today to a year ahead, one row per interval: other rows are listed to fix. An interval with no row is forecast as no contacts. More in Forecasting and staffing.

Time off

  • One row per stretch: employee_number, type (VACATION, PERSONAL, SICK, BEREAVEMENT, UNPAID, or the name), first_day, and optionally last_day, from and to times for part of a day, and a note.
  • Imported time off is approved. Rows that overlap time off someone already has, or each other, are left out and listed, as is leave from someone's leaving day on, which leaving covers.
  • Days are in the YYYY-MM-DD form and times on the 24-hour clock, like 2026-11-02 and 13:00. Others are refused rather than guessed at: 01/05/2027 could be January or May. Save the file as CSV UTF-8, so names keep their accents: a file in another encoding is refused.
  • From an HR system, add its ID for each leave in hr_reference and the system's short name, like workday, in hr_source. Importing the same leave again then changes it to match, and a status of canceled cancels it, so a file can be imported again safely. Up to 5,000 rows a file. A nightly sync can send it through the API instead.

Shifts

  • The schedule your floor already has, into a schedule period as a new draft: on the period's schedule, Generate another draft → From a spreadsheet…. One row per shift: employee_number, line_of_business (name or code), date, and start and end on the 24-hour clock (an end at or before the start, or marked “(next day)”, is the next morning). Optionally activities, like Break 10:30–10:45; Lunch 13:00–13:30 (unpaid), and time_zone, which must be the period's: times are read in the period's time zone.
  • A schedule's Download CSV imports as it is; its other columns are left alone.
  • Rows that can't be a shift (someone not on that line of business, overlapping shifts, approved time off, a date outside the period) are listed to fix. A file with only some of the period's lines of business makes a draft for those, which replaces only their shifts, so its shifts can't overlap the schedule's on the other lines. Undo discards the draft, until it's been used.
  • Up to 12,000 shifts a file, four weeks of a 500-person floor with room to spare. More in Scheduling.

Agent states

For adherence when Erlangly can't read your ACD itself, or your client won't allow it: a file exported from the ACD. An admin imports it from the connection's page, with Import a file: a file comes from one connection, whose agent IDs and state codes it uses. No connection for that ACD yet? Add one under Settings → Connections (Another ACD, or a script) to name it and map its codes.

Three kinds of file, told apart by their columns: one with a login column is logins and logouts, one with a seconds column is time per interval, and any other is state changes. So take a duration column out of an export of state changes.

  • State changes: agent, time, state, and optionally reason. One row each time an agent's state changed, with the state as your ACD names it (Available, Not Ready…) and its reason if it has one (Break, Lunch…).
  • Logins and logouts: agent, login and logout, one row per stretch logged in; leave the logout empty for someone still logged in. Logged in counts as in adherence while they're scheduled to work. Breaks and lunches can't be judged from logins, so they're left out rather than counted against anyone.
  • Time in each state per interval: agent, interval (its start, like 2026-09-21 09:00), state and seconds (or minutes and seconds, like 12:30), and optionally reason, one row per state per interval, on your organization's intervals (15 or 30 minutes).
    • Adherence is worked out from it interval by interval and marked approximate (≈), since a summary doesn't say when in the interval each state was.
    • Export whole days: on a day someone is in the file, scheduled time it doesn't account for counts as logged off.
    • An interval whose rows add up to more than its length is left out, and days someone has state changes of their own are scored from those instead.
  • Agents are the ACD's agent IDs, as linked to people on the connection, or employee numbers.
  • States go through the connection's mapping. Codes it hasn't mapped yet are listed on the connection's page, and their rows in the preview: map them there, then import the file again.
  • Times look like 2026-09-21 08:58:12 (or 08:58), on the 24-hour clock, in the time zone you choose for the file; a time with an offset, like 2026-09-21T08:58:12-05:00, keeps its own.
  • Rows with a problem, like a time in the future or an agent nobody is linked to, are listed in the preview and left out.
  • Other column names your ACD's export may use are understood too, such as agent id, login id or employee number for agent; timestamp, start time or date time for time; status or agent state for state; reason code, aux code or not ready reason for reason; login time and logout time; interval start or half hour for interval; and duration or time in state for seconds.
  • Importing a file again adds nothing new, so exports that overlap are fine. Adherence for the file's days is scored again after it's imported, and after it's undone.
  • Everyone, for whole days: tick It's everyone on this connection, for whole days for a file of state changes or logins with everyone on the connection, all day, on each of its days. Then someone with nothing in it on one of those days wasn't logged in, and is found missing from the ACD where their line of business looks for people missing. Leave it off when the export might leave anyone or any hours out: anyone not in the file is then Can't tell, never missing. Only planners and admins who see every client can tick it, as it speaks for everyone on the connection.
  • For states as they happen, a script can send them to the API instead.