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

# Actions

> Available action library: records, email, messages, HTTP, integrations.

**Actions** are the building blocks you chain in workflows. Arya offers 30+ native actions organised by category.

## Categories

<CardGroup cols={2}>
  <Card title="Records">Create, update, delete, duplicate records of any object.</Card>
  <Card title="Communication">Email, SMS, Slack, WhatsApp, Telegram, in-app push notifications.</Card>
  <Card title="Integrations">Native actions for DocuSign, FatturaInCloud, Google Calendar, Notion, Trello, etc.</Card>
  <Card title="Flow">IF condition, Branch, For each loop, Wait, Stop workflow.</Card>
  <Card title="Data">Transform (map), Aggregate (sum/count), Calculate formulas, HTTP Request.</Card>
  <Card title="AI">Call AryaChat, generate document, summarise, extract data.</Card>
</CardGroup>

## Record actions

<AccordionGroup>
  <Accordion title="Create record">
    Create a new record of any object. Map fields with variables.

    **Example**:

    ```
    Create Project:
      name: {{trigger.deal.name}}
      company: {{trigger.deal.company}}
      budget: {{trigger.deal.value}}
      start_date: {{now}}
    ```
  </Accordion>

  <Accordion title="Update record">
    Update fields of an existing record.
  </Accordion>

  <Accordion title="Delete record">
    Delete a record (soft-delete, recoverable).
  </Accordion>

  <Accordion title="Duplicate record">
    Clone a record with ability to override fields.
  </Accordion>

  <Accordion title="Link records">
    Link two existing records (e.g. a contact to a deal).
  </Accordion>

  <Accordion title="Add to list">
    Add a record to a static list.
  </Accordion>
</AccordionGroup>

## Communication actions

<AccordionGroup>
  <Accordion title="Send email">
    Send email via Arya SMTP or your Gmail/SendGrid integrations.

    **Parameters**: from, to, cc, bcc, subject, body (HTML supported), attachments.
  </Accordion>

  <Accordion title="Send SMS">
    Via configured SMS provider (Twilio, MessageBird).
  </Accordion>

  <Accordion title="Post Slack message">
    Channel or DM. Supports Slack formatting (blocks, attachments, interactive buttons).
  </Accordion>

  <Accordion title="Send WhatsApp message">
    Via [WhatsApp Business integration](/en/integrations/whatsapp). Requires approved templates for outbound.
  </Accordion>

  <Accordion title="Send Telegram message">
    Personal or group/channel.
  </Accordion>

  <Accordion title="Create in-app notification">
    Arya notification for specific users.
  </Accordion>
</AccordionGroup>

## Flow actions

<AccordionGroup>
  <Accordion title="IF condition">
    T/F branch based on condition.
  </Accordion>

  <Accordion title="Switch / branch">
    Multiple branches based on a field value (e.g. `region: North → branch A, South → branch B`).
  </Accordion>

  <Accordion title="For each">
    Loop over a list of records. Executes nested actions per item.
  </Accordion>

  <Accordion title="Wait">
    Pause. Parameters:

    * Fixed duration (e.g. 1 hour, 1 day)
    * Until date/time
    * Until event (e.g. when this deal moves to Won)
  </Accordion>

  <Accordion title="Stop workflow">
    Interrupt execution (useful on severe errors).
  </Accordion>
</AccordionGroup>

## Data actions

<AccordionGroup>
  <Accordion title="HTTP request">
    Call any external REST API. GET, POST, PUT, DELETE. Custom headers and body. Parse JSON response.

    **Example**: notify external system on deal stage change.
  </Accordion>

  <Accordion title="Transform / map">
    Transform data: `rename`, `format_date`, `concat`, `uppercase`, etc.
  </Accordion>

  <Accordion title="Aggregate">
    On a list: sum, average, count, max, min.
  </Accordion>

  <Accordion title="Calculate">
    Custom formula with numeric or string output.
  </Accordion>
</AccordionGroup>

## AI actions

<AccordionGroup>
  <Accordion title="Ask AryaChat">
    Free prompt to AryaChat. Output: text. Consumes AI credits.

    **Example**: `Write a professional welcome email for {{trigger.contact.first_name}} from {{trigger.contact.company.name}}`.
  </Accordion>

  <Accordion title="Generate document">
    Generate PDF/DOCX from template + dynamic data.

    **Example**: NDA contract with prefilled customer data.
  </Accordion>

  <Accordion title="Summarise">
    Summarise long text in N sentences / N characters.
  </Accordion>

  <Accordion title="Extract data">
    Extract structured data from free text: email, names, amounts, dates.

    **Example**: from a request email extract name, role, company → create contact.
  </Accordion>
</AccordionGroup>

## Native integration actions

For each active integration, Arya adds specific actions:

* **Google Calendar**: create event, invite participants
* **DocuSign**: send envelope for signature
* **FatturaInCloud**: issue e-invoice
* **WooCommerce**: create order, update stock
* **Notion**: create page in specific DB
* **Trello**: create card in a list
* **Meta Business**: import leads from Facebook Ads

## Output and chaining

Every action produces an **output** consumable by subsequent actions:

```
Action 1 (Create record) → output: {id, url, name, ...}
Action 2 (Send email) → body: "Project created: {{action_1.output.url}}"
```

## Frequently asked questions

<AccordionGroup>
  <Accordion title="Can I create custom actions?">Not directly. But with **HTTP request** you call any API, effectively allowing integration with any system.</Accordion>
  <Accordion title="Do AI actions consume credits?">Yes. See estimates in [Lesson 10](/en/arya-101/lesson-10-ai-and-aryachat).</Accordion>
  <Accordion title="Can I save action bundles as sub-workflows?">Yes, as sub-workflows callable from other workflows. Useful for DRY.</Accordion>
</AccordionGroup>
