# Auto Plugs

> Attach a reusable follow-up tweet that XBeast posts as a reply once your post crosses a like threshold.

Source: https://xbeast.io/docs/auto-plugs

An auto plug is a reusable tweet that XBeast posts as a reply to one of your posts once that post crosses a like threshold. It is a follow-up, not part of the original post: the plug only appears after the post performs well.

> **Paid-plan feature**
>
> Auto plugs are available on every paid plan. Creating a plug is free; publishing one uses post credits.

## Create a plug

A plug has a name and the tweet text to post. Create it from the Auto Plug section of a post's scheduling settings, or with [POST /api/v1/auto-plugs](https://xbeast.io/docs/api-auto-plugs.md) and a body like `{ "name": "Newsletter plug", "tweet": "I write a weekly newsletter about building in public." }`. The same API can list, update and delete plugs.

## Attach a plug

Attach the plug to a post or a schedule slot with an `auto_plug` object:

| Field | Required | Notes |
| --- | --- | --- |
| id | Yes | The auto plug to attach. |
| min_likes | No | Likes needed before the plug posts. Defaults to 50 when omitted. |

`min_likes` must be between 0 and 100,000. When you attach a plug without a threshold, XBeast stores 50. Posts created by a schedule slot copy the slot's plug and threshold.

## How the plug is posted

- XBeast reads the post's public metrics for up to 48 hours after it is posted.
- Metrics are checked every hour for the first 6 hours, then every 12 hours until the 48-hour window closes.
- When the like count reaches `min_likes`, the plug is posted as a reply to the post (for a thread, to its last tweet).
- The plug is skipped when the post was deleted, posting is disabled for the account, the account needs to be reconnected, the plan is inactive, or the post is already older than 48 hours.

## Credits

Publishing a plug costs the normal post price: 1 credit, plus 10 when the plug text contains a URL. The plug is only charged when it actually posts.

## Common questions

**What is the default minimum like threshold?** 50 likes. If you attach a plug without `min_likes`, XBeast uses 50.

**How long does XBeast keep checking a post?** Up to 48 hours after the post was published. After that window the plug is not posted.

**Are auto plugs available on the Free plan?** No. Auto plugs require a paid plan.

## Related

- [Auto Plugs API reference](https://xbeast.io/docs/api-auto-plugs.md)
- [Add auto_plug to a schedule slot](https://xbeast.io/docs/scheduling.md)
- [Add auto_plug to a post](https://xbeast.io/docs/api-posts.md)
- [Why an auto plug did not post](https://xbeast.io/docs/troubleshooting.md)

[Go to Drafts](https://xbeast.io/drafts)

[Go to Schedule](https://xbeast.io/schedule)
