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

# Actions

> Here you will find out to setup custom actions to utilize the PRC API.

<Warning>These steps will only work if the PRC API pack has been purchased for the server. If it has not, it needs to be purchased before they continue with the steps.</Warning>

<AccordionGroup>
  <Accordion title="Setup an Action" icon="location-arrow">
    1. Run the command `/actions manage`

    2. Create the action, and configure what you want the action to do.

    <Frame>
      <img src="https://mintlify.s3.us-west-1.amazonaws.com/erm/images/api/actions/actionsmanage.png" />
    </Frame>
  </Accordion>

  <Accordion title="PRC API with Actions" icon="webhook">
    * Actions can do many things! However, we will mainly be focusing on the API features.

    * With actions, you're able to execute multiple ER:LC in-game commands with one Discord command. This is useful for server shutdowns, STS/rule briefings, etc.
  </Accordion>

  <Accordion title="API Variables" icon="server">
    **Send ER:LC Command:** This allows you to send any ER:LC command in-game.

    <Frame>
      <img src="https://mintlify.s3.us-west-1.amazonaws.com/erm/images/api/actions/erlccommand.png" />
    </Frame>

    **Send ER:LC Message:** This allows you to send an :m announcement in-game.

    <Frame>
      <img src="https://mintlify.s3.us-west-1.amazonaws.com/erm/images/api/actions/erlcmessage.png" />
    </Frame>

    **Send ER:LC Hint:** This allows you to send ER:LC hint messages.

    <Frame>
      <img src="https://mintlify.s3.us-west-1.amazonaws.com/erm/images/api/actions/erlchint.png" />
    </Frame>
  </Accordion>
</AccordionGroup>
