> ## Documentation Index
> Fetch the complete documentation index at: https://docs.retoneai.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Publishing

> Activate your agent for live calls

Publishing makes your agent available for real phone calls. This page covers saving, activating, and managing your agent's live status.

## Save vs Publish

| Action       | Effect                                                 |
| ------------ | ------------------------------------------------------ |
| **Save**     | Stores your changes but agent remains in current state |
| **Activate** | Makes the agent live for incoming/outgoing calls       |

## Saving Your Work

### Auto-Save

The Flow Builder automatically saves your changes:

* Changes are debounced (2-second delay after last edit)
* Save status indicator shows current state
* Local backup stored in browser for recovery

### Manual Save

Click **Save** in the toolbar or press `Ctrl/Cmd + S` to save immediately.

Save status indicators:

| Status              | Meaning                 |
| ------------------- | ----------------------- |
| **Saved**           | All changes saved       |
| **Saving...**       | Save in progress        |
| **Unsaved changes** | Pending changes to save |
| **Error**           | Save failed (retry)     |

## Activating Your Agent

### Before Activation

Complete this checklist:

<Steps>
  <Step title="Test thoroughly">
    Run multiple test calls and chats to verify behavior
  </Step>

  <Step title="Review flow">
    Ensure all nodes are connected and configured
  </Step>

  <Step title="Check voice">
    Verify voice settings sound professional
  </Step>

  <Step title="Validate KB">
    Confirm knowledge base is attached and current
  </Step>

  <Step title="Assign phone number">
    Connect a phone number to receive calls
  </Step>
</Steps>

### Activating

1. Click the **Active** toggle in the top toolbar
2. Confirm activation in the dialog
3. The agent is now live

<Warning>
  Once active, the agent will handle real calls. Ensure you've tested thoroughly.
</Warning>

### Deactivating

To take an agent offline:

1. Click the **Active** toggle (switch off)
2. Confirm deactivation
3. The agent stops receiving calls

Calls in progress will complete, but no new calls will be routed.

## Agent States

| State        | Description                    |
| ------------ | ------------------------------ |
| **Draft**    | In development, not live       |
| **Active**   | Live and receiving calls       |
| **Inactive** | Previously active, now offline |

## Pre-Launch Checklist

<AccordionGroup>
  <Accordion title="Flow Validation">
    * [ ] Start node is configured
    * [ ] All paths lead to End Call or Transfer
    * [ ] No orphaned nodes
    * [ ] No validation errors (check for red indicators)
  </Accordion>

  <Accordion title="Content Quality">
    * [ ] System prompt is complete and accurate
    * [ ] All conversation prompts reviewed
    * [ ] Knowledge base content is current
    * [ ] Pronunciation overrides added for tricky words
  </Accordion>

  <Accordion title="Testing Complete">
    * [ ] Happy path tested multiple times
    * [ ] Edge cases handled gracefully
    * [ ] Human transfer works
    * [ ] Error scenarios don't break flow
  </Accordion>

  <Accordion title="Integration Ready">
    * [ ] Phone number assigned
    * [ ] Business hours configured (if applicable)
    * [ ] Fallback messages set
    * [ ] Team notified of go-live
  </Accordion>
</AccordionGroup>

## Rollback

If issues occur after activation:

1. **Immediate**: Toggle agent to inactive
2. **Fix**: Address the issue in the flow
3. **Restore**: Use version history to revert if needed
4. **Reactivate**: Turn agent back on after fix

See [Version History](/publish/version-history) for restoring previous versions.

## Monitoring After Launch

After activation:

* Watch **Call History** for incoming calls
* Review **Analytics** for performance metrics
* Check transcripts for quality issues
* Monitor for unexpected behavior

## Best Practices

<CardGroup cols={2}>
  <Card title="Soft Launch" icon="volume-low">
    Start with limited call volume to catch issues early.
  </Card>

  <Card title="Keep Backups" icon="copy">
    Create a version snapshot before major changes.
  </Card>

  <Card title="Monitor Closely" icon="eye">
    Watch the first few calls to ensure everything works.
  </Card>

  <Card title="Have Fallback" icon="shield">
    Ensure human transfer is always available as backup.
  </Card>
</CardGroup>

## Related

<CardGroup cols={2}>
  <Card title="Version History" icon="clock-rotate-left" href="/publish/version-history">
    Manage and restore versions
  </Card>

  <Card title="Phone Number" icon="phone" href="/publish/phone-number">
    Assign phone numbers
  </Card>

  <Card title="Test Call" icon="phone" href="/test-agent/test-call">
    Final testing before launch
  </Card>
</CardGroup>
