Import call history with pullers

Set up a puller to decide which call service imported Avoxi calls belong to, follow the hourly sync, and import up to 31 days of past calls at a time.

Some providers don't connect calls through Rework β€” they deliver a record of each call afterwards. Today that's Avoxi. For these lines, Rework imports call records on a schedule, and a puller decides which call service each imported call belongs to.

Every call in Rework belongs to a call service. A call placed in Rework gets its service from the dialer, and an inbound call from its router. An imported call has neither, so the puller answers that question.

Who can do this

  • Pullers: anyone can create a puller under Settings β†’ Pullers; only people who manage a puller can edit or delete it.
  • Choosing a puller on a line, agent mapping, Import past calls: the line's owner and workspace system owners.

Before you start

  • You have at least one Avoxi line. See Connect Avoxi.
  • The call services you want calls filed under exist. See What is a call service.
  • Your Rework administrator has enabled the scheduled Avoxi import and the background import for your workspace.

Steps

Create a puller

  1. Go to Settings β†’ Pullers and click New Puller.
  2. Enter a Name (required) and an optional Description.
  3. Choose a Default call service. This is used whenever no rule below matches.
  4. (Optional) Under Choose the service by who the number belongs to, click Add rule and pick:

    • Is a Sales contact β†’ the service to use when the other party's number is a contact in Sales, or
    • Is a Lead β†’ the service to use when the number is a lead.

    Use the arrows to set the order β€” rules are asked top to bottom, and the first app that recognises the number decides. Each app can appear only once.

  5. Click Save.

Attach the puller to a line

  1. Go to Settings β†’ Service Accounts and click the pencil icon on an Avoxi line.
  2. In Puller, choose your puller. You can share one puller between several lines.
  3. Click Save changes.

Import past calls (backfill)

The hourly sync only moves forward from where the line last stopped. Use a backfill when you first connect a line that already has history, or to fill a gap after a failure.

  1. On Settings β†’ Service Accounts, click the history icon (Import past calls) on an Avoxi line.
  2. Pick From and To dates. To is inclusive β€” the whole of that day is imported. The default is the last 7 days, and the range can't be longer than 31 days or start in the future.
  3. Click Start import. You'll see Backfill started β€” call records will appear as they import.

How it works

Hourly sync. At 7 minutes past every hour, Rework reads the new call records for each Avoxi line, continuing from that line's last sync with a short overlap. A missed hour is caught up by the next run. The line shows its last sync as Never, Just now, or N minutes / hours / days ago.

Backfill across the workspace. Avoxi returns records for your whole organization, so a backfill re-reads the date range once for every Avoxi line in the workspace, even though you start it from one line. It runs in the background, in 6-hour steps, and never moves the hourly sync position. Calls already imported are left alone, so it's safe to run the same range again.

Backfill status appears next to the line:

StatusMeaning
Import queuedWaiting to start.
Importing… N%How much of the date range has been read.
Import complete β€” N newThe whole range was read without errors.
Import incomplete β€” N new, M windows failedSome 6-hour steps failed. Run the range again to fill them in.
Import failed β€” …The import couldn't finish, with the reason.

An import that stalls is resumed automatically from where it stopped, and given up on after several attempts.

How an imported call is filed.

  1. The call gets the puller's Default call service (or no service, if the line has no puller).
  2. If the puller has rules, Rework asks each app in order whether it knows the other party's number. The first match moves the call to that rule's service.
  3. The chosen service's own linking rules then decide which records the call is attached to.

If Sales or Lead can't be reached at that moment, the call keeps its current service and Rework tries again later β€” it never files a call under the wrong service because of an outage.

What stays on the line, not the puller. The sync position, the last error and the Agent mapping belong to each Avoxi line, because they depend on that line's Avoxi account. The puller only holds the filing rules.

Good to know

  • Deleting a puller shows a warning that lines will stop importing. In practice, lines that pointed at it keep importing, but their new calls arrive without a call service. Pick another puller on those lines.
  • A rule without a service is dropped when you save.
  • Fixing the agent mapping later doesn't rewrite old calls on its own; run Import past calls over the affected range. Calls that were missing an owner or a service are also completed that way.
  • Changing a puller's rules affects calls imported from then on. Calls that were already imported with a service generally keep it.
  • Recordings older than about a day may have expired at Avoxi, so very old backfills may bring calls without audio.

Related articles