# Smallest.ai

> Manage voice agents, read call logs and analytics, and generate speech.

App · 20 actions. Web page: https://docs.lodol.com/docs/integrations/smallest-ai

## Actions

### Archive agent

Archive agent in Smallest.ai.

**Inputs**

- Agent (`agent_id`, text, required): Agent.

**Outputs**

- `data` (object): The Smallest.ai response.

**Example output**

```json
{
  "data": {
    "data": {},
    "status": false
  }
}
```

### Create agent

Create agent in Smallest.ai.

**Inputs**

- Agent name (`name`, text, required): Agent name.
- Description (`description`, text): Description.

**Outputs**

- `data` (object): The Smallest.ai response.

**Example output**

```json
{
  "data": {
    "data": "example",
    "status": false
  }
}
```

### Duplicate agent

Duplicate agent in Smallest.ai.

**Inputs**

- Agent (`agent_id`, text, required): Agent.

**Outputs**

- `data` (object): The Smallest.ai response.

**Example output**

```json
{
  "data": {
    "data": {},
    "status": false
  }
}
```

### Find calls

Find calls in Smallest.ai.

**Inputs**

- Call IDs (`call_ids`, list, required): Call IDs.

**Outputs**

- `data` (object): The Smallest.ai response.

**Example output**

```json
{
  "data": {
    "data": {},
    "status": false
  }
}
```

### Get agent

Get agent in Smallest.ai.

**Inputs**

- Agent (`agent_id`, text, required): Agent.

**Outputs**

- `data` (object): The Smallest.ai response.

**Example output**

```json
{
  "data": {
    "data": {
      "_id": "example",
      "createdAt": "example",
      "description": "example",
      "name": "example",
      "updatedAt": "example"
    },
    "status": false
  }
}
```

### Get agent call logs

Get agent call logs in Smallest.ai.

**Inputs**

- Agent (`agent_id`, text, required): Agent.
- Page (`page`, number): Page. At least 1.
- Page size (`page_size`, number): Page size. From 1 to 100.

**Outputs**

- `data` (object): The Smallest.ai response.

**Example output**

```json
{
  "data": {
    "data": {
      "callLogs": [],
      "totalCount": 1.0
    },
    "status": false
  }
}
```

### Get agent performance

Get agent performance in Smallest.ai.

**Inputs**

- Agents (`agent_ids`, list): Agents.
- Campaign ID (`campaign_id`, text): Campaign ID.
- Call type (`call_type`, text): Call type. One of: `inbound`, `outbound`.
- Date from (`date_from`, date and time): Date from.
- Date to (`date_to`, date and time): Date to.

**Outputs**

- `data` (object): The Smallest.ai response.

**Example output**

```json
{
  "data": {
    "data": {},
    "status": false
  }
}
```

### Get analytics summary

Get analytics summary in Smallest.ai.

**Inputs**

- Agents (`agent_ids`, list): Agents.
- Campaign ID (`campaign_id`, text): Campaign ID.
- Call type (`call_type`, text): Call type. One of: `inbound`, `outbound`.
- Date from (`date_from`, date and time): Date from.
- Date to (`date_to`, date and time): Date to.

**Outputs**

- `data` (object): The Smallest.ai response.

**Example output**

```json
{
  "data": {
    "data": {},
    "status": false
  }
}
```

### Get call counts

Get call counts in Smallest.ai.

**Inputs**: None.

**Outputs**

- `data` (object): The Smallest.ai response.

**Example output**

```json
{
  "data": {
    "data": {},
    "status": false
  }
}
```

### Get call counts by day

Get call counts by day in Smallest.ai.

**Inputs**

- Agents (`agent_ids`, list): Agents.
- Campaign ID (`campaign_id`, text): Campaign ID.
- Call type (`call_type`, text): Call type. One of: `inbound`, `outbound`.
- Date from (`date_from`, date and time): Date from.
- Date to (`date_to`, date and time): Date to.

**Outputs**

- `data` (object): The Smallest.ai response.

**Example output**

```json
{
  "data": {
    "data": {},
    "status": false
  }
}
```

### Get call volume timeseries

Get call volume timeseries in Smallest.ai.

**Inputs**

- Agents (`agent_ids`, list): Agents.
- Campaign ID (`campaign_id`, text): Campaign ID.
- Call type (`call_type`, text): Call type. One of: `inbound`, `outbound`.
- Date from (`date_from`, date and time): Date from.
- Date to (`date_to`, date and time): Date to.

**Outputs**

- `data` (object): The Smallest.ai response.

**Example output**

```json
{
  "data": {
    "data": {},
    "status": false
  }
}
```

### Get conversation details

Get conversation details in Smallest.ai.

**Inputs**

- Call ID (`call_id`, text, required): Call ID.

**Outputs**

- `data` (object): The Smallest.ai response.

**Example output**

```json
{
  "data": {
    "data": {},
    "status": false
  }
}
```

### Get daily call summary

Get daily call summary in Smallest.ai.

**Inputs**

- Agents (`agent_ids`, list): Agents.

**Outputs**

- `data` (object): The Smallest.ai response.

**Example output**

```json
{
  "data": {
    "data": {},
    "status": false
  }
}
```

### Get knowledge base

Get knowledge base in Smallest.ai.

**Inputs**

- Knowledge base (`knowledge_base_id`, text, required): Knowledge base.

**Outputs**

- `data` (object): The Smallest.ai response.

**Example output**

```json
{
  "data": {
    "data": {
      "_id": "example",
      "description": "example",
      "name": "example"
    },
    "status": false
  }
}
```

### Get subscription

Get subscription in Smallest.ai.

**Inputs**: None.

**Outputs**

- `data` (object): The Smallest.ai response.

**Example output**

```json
{
  "data": {
    "data": {},
    "status": false
  }
}
```

### List agents

List agents in Smallest.ai.

**Inputs**

- Page (`page`, number): Page. At least 1.
- Page size (`page_size`, number): Page size. From 1 to 100.
- Search (`search`, text): Search.
- Agent type (`type`, text): Agent type. One of: `single_prompt` (Single prompt), `workflow_graph` (Workflow graph).
- Sort field (`sort_field`, text): Sort field. One of: `createdAt`, `updatedAt`, `totalCalls`, `name`, `workflowType`.
- Sort order (`sort_order`, text): Sort order. One of: `asc`, `desc`.
- Archived (`archived`, true/false): Archived.

**Outputs**

- `data` (object): The Smallest.ai response.

**Example output**

```json
{
  "data": {
    "data": {
      "agents": [],
      "total": 1.0
    },
    "status": false
  }
}
```

### List knowledge base items

List knowledge base items in Smallest.ai.

**Inputs**

- Knowledge base (`knowledge_base_id`, text, required): Knowledge base.

**Outputs**

- `data` (object): The Smallest.ai response.

**Example output**

```json
{
  "data": {
    "data": {},
    "status": false
  }
}
```

### List knowledge bases

List knowledge bases in Smallest.ai.

**Inputs**: None.

**Outputs**

- `data` (object): The Smallest.ai response.

**Example output**

```json
{
  "data": {
    "data": [],
    "status": false
  }
}
```

### List voices

List voices in Smallest.ai.

**Inputs**: None.

**Outputs**

- `data` (object): The Smallest.ai response.

**Example output**

```json
{
  "data": {
    "voices": []
  }
}
```

### Synthesize speech

Synthesize speech in Smallest.ai.

**Inputs**

- Text (`text`, text, required): Enter what the voice should say.
- Voice (`voice_id`, text, required): Voice.
- Output format (`output_format`, text): Output format. One of: `wav`, `mp3`, `pcm`, `ulaw`, `alaw`.
- Sample rate (`sample_rate`, number): Sample rate. One of: `8000`, `16000`, `24000`, `44100`.
- Speed (`speed`, number): Speed. From 0.5 to 2.

**Outputs**

- `data` (object): The Smallest.ai response.

**Example output**

```json
{
  "data": {
    "content_base64": "example",
    "content_type": "example"
  }
}
```
