# Babelforce

The connector calls the [Babelforce](https://www.babelforce.com/) [REST API](https://www.babelforce.com/rest-api-power/).

**Before you start**

You need:

- **A Babelforce API Access ID and API Access Token,** generated in the Babelforce manager app.

What each tab needs:

- **Prompt tab:** Kai, the **Kai Agent** button in the top bar, on supported stacks. A new Free Plan project has it from the start; elsewhere an organization admin turns it on once: Get started with Kai (/kai/getting-started/).
- **UI tab:** a browser.
- **CLI / API tab:** kbagent (/cli/getting-started/), connected to your project. The checks only read.

## Configuration
[Create a new configuration](https://help.keboola.com/components/configurations/#create-a-configuration) of the **Babelforce** connector.

Enter the **API Access ID** and **API Access Token**.
Select the **configuration template** and save the configuration. 
There is only one Babelforce template available so far -- *Basic*. This option downloads all call data from your Babelforce profile.
You can also [switch to the JSON editor](https://help.keboola.com/components/extractors/generic-extractor/#template-mode).

![Screenshot - API token](https://help.keboola.com/components/extractors/marketing-sales/babelforce/babelforce-1.png)

**Important:** Data are always imported incrementally.

Click **Run Component**.

**Check:**

### Prompt

```text title="Prompt" wrap
Did the latest job of my Babelforce configuration succeed, and did it load the calls_export, bridged_calls_export and recordings_export tables? Give their row counts.
```

Kai only reads here, so it asks for no approval, and its answer links to what it found in your project.

### UI

The job ends with status **Success** and Storage has the table `calls_export` with your call data, plus
`bridged_calls_export` and `recordings_export`.

### CLI / API

```bash
kbagent job list --component-id keboola.ex-babelforce --config-id 123456789 --limit 1
kbagent storage tables
```

Replace `123456789` with your configuration ID: `status` shows whether the job succeeded, and the tables it loaded have the latest `last_import_date`, with their rows in `rows_count`.

---
