# Create an agent

Agents handle calls based on the instructions, voice, and settings you define. This tutorial shows how to create an agent and configure how it behaves during calls.

### Before you start

Make sure you have the following:

* An active Agentalk account.
* Basic understanding of how [**AI agents**](https://docs.agentalk.io/core-concepts/ai-agents) work.

{% hint style="info" %} <mark style="color:$info;">**Use separate agents for inbound and outbound calls**</mark>

Create separate agents for inbound and outbound calls. The initial message must differ depending on whether the agent is receiving or initiating the call. Duplicate an existing agent to create the second one quickly.
{% endhint %}

Follow these steps to create and configure your agent:

{% stepper %}
{% step %}

### Open the new agent form

Start by creating a new agent from the dashboard.

1. Go to **AI Agents** in the left navigation.
2. Click **Create New agent**.

<figure><img src="https://285863927-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fm98jxZrUSvigV0UIuC7m%2Fuploads%2F7i4ptdAoNCCKdIwTptIL%2F30-03-2026_17-27-56.gif?alt=media&#x26;token=2338e0a0-1487-4de9-ab4f-878953eb07c0" alt=""><figcaption></figcaption></figure>

The agent configuration screen opens with multiple tabs.
{% endstep %}

{% step %}

### Configure basic settings

Define the core identity and behavior of your agent.

1. Enter an **Agent name**.\
   Example: `support_inbound_en`
2. Enter the **Initial message**.\
   This is what the caller hears first.\
   Example: `Hi! How can I help you today?`
3. Enable or disable **Greeting must complete before user can speak**.
4. In the **Conversation guidelines** field, you can create and customize the agent’s instructions.

   Choose how you want to generate the instructions:

   * **Manual writing:** Write the instructions yourself.
   * **Smart questionnaire:** Answer guided questions to generate instructions.
   * **Import from website:** Enter a URL to generate instructions based on your site content.

   Once the instructions are generated or written, review and adjust them as needed.
5. (Optional) Click **Add parameter** to capture structured data such as names, dates, or other variables during the conversation.
6. (Optional) Open **Additional settings**:
   * Enable **Call recording.**
   * Select a **Knowledge base.**
   * Add a **Conversation summary webhook URL.**

{% hint style="info" %} <mark style="color:$info;">**When to use a knowledge base**</mark>

The knowledge base is optional. Use it when your agent needs to answer questions from large or complex content.
{% endhint %}

<figure><img src="https://285863927-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fm98jxZrUSvigV0UIuC7m%2Fuploads%2F28BNtZL7rHrx9lXXNL4N%2F30-03-2026_17-39-09.gif?alt=media&#x26;token=900ef901-6fe9-4238-afdd-ac88ba6577e9" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}

### Select voice and language

Choose how your agent sounds and generates responses.

1. In **Voice model selection**, choose one option:
   1. **Gemini or OpenAI**

      Use this option for a simple setup with preconfigured models and minimal setup.

      * Select a voice in **Voice and API key selection**
      * Configure **Background settings**:
        * Sound type
        * Sound volume
      * (Optional) Set **Language selection.**
   2. **Custom configuration**\
      Use this option when you need more control over the language model and voice behavior.
      * In **LLM settings**, choose:
        * Model type
        * Provider
      * Select a voice in **Voice selection**
      * Configure:
        * Background noise
        * Language (optional)

Additional fields may appear depending on your configuration.

<figure><img src="https://285863927-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fm98jxZrUSvigV0UIuC7m%2Fuploads%2F6zxu7Ev9OlZNv3xlGGYm%2F30-03-2026_17-42-55.gif?alt=media&#x26;token=74b13952-67fb-4ca7-bfe0-f5d997147adc" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}

### Configure advanced settings

Adjust how the agent responds during calls. Most users can skip this step.

The following settings are optional and can be configured based on your use case.

#### Response settings

Control how the agent generates responses.

* **Maximum tokens**: Controls response length.
* **Creativity level (temperature)**: Controls variation.

#### Interruptions & monitoring settings

Define when the agent can interrupt or be interrupted during the conversation.

* **Minimum interrupt duration**: Minimum time before an interruption is detected
* **Minimum words**: Minimum words required before allowing interruption

#### Timing settings

Control how the agent detects when the caller has finished speaking.

* **Minimum delay for end of speech**
* **Maximum delay for end of speech**
* **Silence timeout**
* **Maximum duration**: Limits how long the call can last.

#### Punctuation & response settings

Adjust how punctuation affects response timing.

* Enable **Automatic punctuation response**.
* Set **Response delay for punctuation**.

Save your changes when you finish configuring these settings.

<figure><img src="https://285863927-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fm98jxZrUSvigV0UIuC7m%2Fuploads%2F9ktvOaQJPyBhHRr5LGvm%2F30-03-2026_17-51-42.gif?alt=media&#x26;token=48ce7e11-53a6-456a-97a1-23c6a6dd77ad" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}

### Save and test the agent

Save your configuration and verify it works.

* Click **Save draft** to keep changes without activating the agent.
* Click **Save** to apply the configuration.
* Click **Save and test agent** to run a test call.
* Click **Cancel** to discard changes.

<figure><img src="https://285863927-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fm98jxZrUSvigV0UIuC7m%2Fuploads%2FoI6bXYZzmi7KaroOi7wD%2F30-03-2026_17-53-19.gif?alt=media&#x26;token=1828aa4c-ebb7-4856-89f0-00d031acce47" alt=""><figcaption></figcaption></figure>
{% endstep %}
{% endstepper %}

### Next steps

Here are the recommended next steps after completing this guide:

* [**Add a phone number**](https://docs.agentalk.io/phone-numbers/add-a-phone-number): Connect a number so your agent can start handling calls.
* [**Configure and test your phone number**](https://docs.agentalk.io/phone-numbers/configure-and-test-your-phone-number): Make sure your setup works before going live.
* [**Write effective agent instructions**](https://docs.agentalk.io/ai-agents/write-effective-agent-instructions): Improve how your agent handles conversations.
* [**Setup checklist**](https://docs.agentalk.io/getting-started/setup-checklist): Review all required steps to complete your setup.
