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

# Actions

### Overview ℹ️

Actions are the tasks executed when the criteria are satisfied. Each action can be delayed, allowing it to be executed at a specific time.

Available Actions:

1. **Send Message** - Send a message to a chat or group.
2. **Reply to message** - Reply to a message.
3. **Forward Message** - Forward a message to another chat.
4. **Update Flag Status** - Flag a message in Periskope.
5. **Delete a message** - Delete a message from a chat.
6. **Notify HTTP** - Send a notification/hook to an external HTTP endpoint.
7. **Create Ticket** - Create a new ticket in Periskope.
8. **Assign Ticket** - Assign a ticket to a user.
9. **Close Ticket** - Close a ticket in Periskope.
10. **Add Ticket Label** - Add one or more labels to a ticket.
11. **Add Chat Label** - Add a label to a chat.
12. **Assign Chat** - Assign a chat to a user.
13. **Update a Chat Custom Property** - Update a custom property of a chat.
14. **Send an email** - Send an email to a user.
15. **Set Ticket Due Date** - Set a due date for a ticket.
16. **Update Ticket Custom Property** - Update a custom property of a ticket.
17. **Attach Message To Latest Ticket** - Attach a message to the latest ticket based on statuses.
18. **Close Chat** - Close a chat conversation.
19. **Send Message To Chat** - Send a message to a specified chat.
20. **Send Slack Webhook Notification** - Send a slack webhook notification to a channel.
21. **Create Ticket On Freshdesk** - Create a ticket on Freshdesk (requires Freshdesk integration).
22. **Create Ticket On Hubspot** - Create a ticket on Hubspot (requires Hubspot integration).
23. **Create Ticket On Zohodesk** - Create a ticket on Zohodesk (requires Zohodesk integration).

<Note>
  The available actions may vary based on the triggers selected. Not all actions are available for all triggers.

  You can add multiple actions to a rule and set delays for each action.
</Note>

### 1. Send Message Action 📩

The **Send Message** action allows you to send a message to a chat or group. You can customize the message content and choose the chat or group to send the message to.

<Frame caption="Send Message Action">
  <img className="block border rounded-xl shadow mx-auto mt-4" src="https://mintcdn.com/bharatkumarramesh/s3KLUqJSJd_cmNXd/integrations/automation-rules/images/actions/send-message.action.png?fit=max&auto=format&n=s3KLUqJSJd_cmNXd&q=85&s=a6b9910b7b0ad62bd56da66ede52e77e" alt="Send Message Action" width="90%" data-path="integrations/automation-rules/images/actions/send-message.action.png" />
</Frame>

**Action Inputs**

<ParamField path="Delay" type="<number> <seconds/minutes/hours/days>">
  The delay before executing the action. You can specify the delay in seconds,
  minutes, hours, or days.
</ParamField>

<ParamField path="Message" type="editor">
  The message content to be sent. You can add variables to personalize the message.

  Example: `Hello {{ chat.chat_name || '<fallback>' }}, your request has been received.`
</ParamField>

<ParamField path="Media" type="file">
  Optional media file to attach to the message. You can upload an image, video, document, or other supported file type.
</ParamField>

<Tip>
  You can add variables to the message content to personalize the message.
  Variables are placeholders that are replaced with actual values when the
  message is sent and if the variable is not available, the fallback value is
  used. Use variables to include dynamic information in the message, such as the
  chat name, sender name, or ticket ID.
</Tip>

<ParamField path="Maintain Flag status" type="dropdown (true/false)">
  Option to maintain the flag status of the previous messages after sending the
  reply.
</ParamField>

<ParamField path="Enable Cooldown Period" type="dropdown (true/false)">
  Whether to enable a cooldown period after sending the message. You can set a
  cooldown period to prevent sending multiple messages in quick succession.
</ParamField>

<ParamField path="Cooldown Period" type="<number> <seconds/minutes/hours/days>">
  The duration of the cooldown period. You can specify the period in seconds,
  minutes, hours, or days.
</ParamField>

### 2. Reply to Message Action 📩

The **Reply to Message** action allows you to reply to a message. You can customize the reply content and choose the message to reply to.

<Frame caption="Reply to Message Action">
  <img className="block border rounded-xl shadow mx-auto mt-4" src="https://mintcdn.com/bharatkumarramesh/p5Zg2yD8SQLzX01k/integrations/automation-rules/images/actions/reply-message.action.png?fit=max&auto=format&n=p5Zg2yD8SQLzX01k&q=85&s=6b79d0f37389c349aeddfa2848491c29" alt="Reply to Message Action" width="90%" data-path="integrations/automation-rules/images/actions/reply-message.action.png" />
</Frame>

**Difference between Send Message and Reply to Message**

The **Send Message** action sends a new message to a chat or group, while the **Reply to Message** action replies to a specific message in the chat by quoting it.

**Action Inputs**

<ParamField path="Delay" type="<number> <seconds/minutes/hours/days>">
  The delay before executing the action. You can specify the delay in seconds,
  minutes, hours, or days.
</ParamField>

<ParamField path="Message" type="editor">
  The reply content to be sent. You can add variables to personalize the reply.

  Example: `Hello {{ message.sender_name || '<fallback>' }}, your request has been received.`
</ParamField>

<ParamField path="Media" type="file">
  Optional media file to attach to the reply. You can upload an image, video, document, or other supported file type.
</ParamField>

<Tip>
  You can add variables to the reply content to personalize the reply. Variables
  are placeholders that are replaced with actual values when the reply is sent
  and if the variable is not available, the fallback value is used. Use
  variables to include dynamic information in the reply, such as the sender name
  or message content.
</Tip>

<ParamField path="Maintain Flag status" type="dropdown (true/false)">
  Option to maintain the flag status of the previous messages after sending the
  reply.
</ParamField>

<ParamField path="Enable Cooldown Period" type="dropdown (true/false)">
  Whether to enable a cooldown period after sending the reply. You can set a
  cooldown period to prevent sending multiple replies in quick succession.
</ParamField>

<ParamField path="Cooldown Period" type="<number> <seconds/minutes/hours/days>">
  The duration of the cooldown period. You can specify the period in seconds,
  minutes, hours, or days.
</ParamField>

### 3. Forward Message Action 📩⏩

The **Forward Message** action allows you to forward a message to another chat.

<Frame caption="Forward Message Action">
  <img className="block border rounded-xl shadow mx-auto mt-4" src="https://mintcdn.com/bharatkumarramesh/p5Zg2yD8SQLzX01k/integrations/automation-rules/images/actions/forward-message.action.png?fit=max&auto=format&n=p5Zg2yD8SQLzX01k&q=85&s=6f8b61af4a21a901c79c982e9fd76c12" alt="Forward Message Action" width="90%" data-path="integrations/automation-rules/images/actions/forward-message.action.png" />
</Frame>

**Action Inputs**

<ParamField path="Delay" type="<number> <seconds/minutes/hours/days>">
  The delay before executing the action. You can specify the delay in seconds,
  minutes, hours, or days.
</ParamField>

<ParamField path="Chat" type="dropdown">
  The chat or group to forward the message to.
</ParamField>

### 4. Update Flag Status Action 🚩

The **Update Flag Status** action allows you to flag or unflag a message in Periskope.

<Frame caption="Update Flag Status Action">
  <img className="block border rounded-xl shadow mx-auto mt-4" src="https://mintcdn.com/bharatkumarramesh/s3KLUqJSJd_cmNXd/integrations/automation-rules/images/actions/update-flag.action.png?fit=max&auto=format&n=s3KLUqJSJd_cmNXd&q=85&s=57f5ec959dc3a11bbd72a8ab0e4a0b2d" alt="Update Flag Status Action" width="90%" data-path="integrations/automation-rules/images/actions/update-flag.action.png" />
</Frame>

**Action Inputs**

<ParamField path="Delay" type="<number> <seconds/minutes/hours/days>">
  The delay before executing the action. You can specify the delay in seconds,
  minutes, hours, or days.
</ParamField>

<ParamField path="Flag Status" type="dropdown (true/false)">
  The flag status to set for the message. You can choose to flag or unflag the
  message.
</ParamField>

### 5. Delete Message Action 🗑️

The **Delete Message** action allows you to delete a message from a chat.

<Frame caption="Delete Message Action">
  <img className="block border rounded-xl shadow mx-auto mt-4" src="https://mintcdn.com/bharatkumarramesh/p5Zg2yD8SQLzX01k/integrations/automation-rules/images/actions/delete-message.action.png?fit=max&auto=format&n=p5Zg2yD8SQLzX01k&q=85&s=06b36d842f37dfe11c1410eafeb1a289" alt="Delete Message Action" width="90%" data-path="integrations/automation-rules/images/actions/delete-message.action.png" />
</Frame>

<Warning>
  This action is irreversible. Once a message is deleted, it cannot be recovered.

  You can only delete messages if you have the necessary permissions.
</Warning>

**Action Inputs**

<ParamField path="Delay" type="<number> <seconds/minutes/hours/days>">
  The delay before executing the action. You can specify the delay in seconds,
  minutes, hours, or days.
</ParamField>

### 6. Notify HTTP Action 🌐

The **Notify HTTP** action allows you to send a notification/hook to an external HTTP endpoint.

<Frame caption="Notify HTTP Action">
  <img className="block border rounded-xl shadow mx-auto mt-4" src="https://mintcdn.com/bharatkumarramesh/p5Zg2yD8SQLzX01k/integrations/automation-rules/images/actions/notify.action.png?fit=max&auto=format&n=p5Zg2yD8SQLzX01k&q=85&s=e8b421409b9e4fe222a2f8b8aa30f614" alt="Notify HTTP Action" width="90%" data-path="integrations/automation-rules/images/actions/notify.action.png" />
</Frame>

**Action Inputs**

<ParamField path="Delay" type="<number> <seconds/minutes/hours/days>">
  The delay before executing the action. You can specify the delay in seconds,
  minutes, hours, or days.
</ParamField>

<ParamField path="URL" type="string">
  The `POST /` URL of the external HTTP endpoint to send the notification to.
</ParamField>

### 7. Create Ticket Action 🎫

The **Create Ticket** action allows you to create a new ticket in Periskope.

<Frame caption="Create Ticket Action">
  <img className="block border rounded-xl shadow mx-auto mt-4" src="https://mintcdn.com/bharatkumarramesh/p5Zg2yD8SQLzX01k/integrations/automation-rules/images/actions/create-ticket.action.png?fit=max&auto=format&n=p5Zg2yD8SQLzX01k&q=85&s=2bb7d971b96f2178ea4b413fa6138c19" alt="Create Ticket Action" width="90%" data-path="integrations/automation-rules/images/actions/create-ticket.action.png" />
</Frame>

**Action Inputs**

<ParamField path="Delay" type="<number> <seconds/minutes/hours/days>">
  The delay before executing the action. You can specify the delay in seconds,
  minutes, hours, or days.
</ParamField>

<ParamField path="Attach message to latest ticket (if available)" type="dropdown (true/false)">
  If enabled, the message will be appended to the latest open ticket (if available) else a new ticket will be created.
</ParamField>

<ParamField path="Assignee" type="dropdown">
  The user to assign the ticket to.
</ParamField>

<ParamField path="Enable Round Robin" type="dropdown (true/false)">
  Whether to assign the ticket using the round-robin method. You can enable
  round-robin assignment to distribute tickets evenly among users.
</ParamField>

<ParamField path="Check Assignee status for (Round Robin)" type="dropdown">
  This option is displayed when Round Robin is enabled. It determines how agent availability is considered when creating and assigning tickets:

  1. **Consider shift timings**: Only assigns tickets to agents who are within their configured work schedule
  2. **Exclude users manually marked as offline**: Only assigns tickets to agents who are not manually set to "offline"
  3. **Exclude users marked as offline or away**: Only assigns tickets to agents who are not marked as offline or away
  4. **Consider both shift timings and user status**: Only assigns tickets when both conditions are met (agent is within shift AND not manually marked offline)

  <Tip>For more details on setting user status and shift timings, check out docs [here](/features/team-access-roles#managing-agent-online-offline-status-and-shift-schedules)</Tip>
</ParamField>

<ParamField path="Priority" type="dropdown">
  The priority level of the ticket. You can choose from No Priority, Low, Medium, High, or
  Urgent. Only applicable when creating a new ticket.
</ParamField>

<ParamField path="Labels" type="dropdown">
  The labels to add to the ticket. You can add multiple labels by selecting from
  the dropdown. Only applicable when creating a new ticket.
</ParamField>

### 8. Assign Ticket Action 🎫👤

The **Assign Ticket** action allows you to assign a ticket to a user.

<Frame caption="Assign Ticket Action">
  <img className="block border rounded-xl shadow mx-auto mt-4" src="https://mintcdn.com/bharatkumarramesh/p5Zg2yD8SQLzX01k/integrations/automation-rules/images/actions/assign-ticket.action.png?fit=max&auto=format&n=p5Zg2yD8SQLzX01k&q=85&s=8d6d84afa0dc83dad97e975db9709a8b" alt="Assign Ticket Action" width="90%" data-path="integrations/automation-rules/images/actions/assign-ticket.action.png" />
</Frame>

**Action Inputs**

<ParamField path="Delay" type="<number> <seconds/minutes/hours/days>">
  The delay before executing the action. You can specify the delay in seconds,
  minutes, hours, or days.
</ParamField>

<ParamField path="Enable Round Robin" type="dropdown (true/false)">
  Whether to assign the ticket using the round-robin method. You can enable
  round-robin assignment to distribute tickets evenly among users.
</ParamField>

<Info>
  Round-robin assignment assigns tickets to users in a circular order. Each user
  receives a ticket in turn, ensuring an even distribution of tickets among
  users.
</Info>

<ParamField path="Check Assignee status for (Round Robin)" type="dropdown">
  This option is displayed when Round Robin is enabled. It determines how agent availability is considered when assigning tickets:

  1. **Consider shift timings**: Only assigns tickets to agents who are within their configured work schedule
  2. **Exclude users manually marked as offline**: Only assigns tickets to agents who are not manually set to "offline"
  3. **Exclude users marked as offline or away**: Only assigns tickets to agents who are not marked as offline or away
  4. **Consider both shift timings and user status**: Only assigns tickets when both conditions are met (agent is within shift AND not manually marked offline)

  <Tip>For more details on setting user status and shift timings, check out docs [here](/features/team-access-roles#managing-agent-online-offline-status-and-shift-schedules)</Tip>
</ParamField>

<ParamField path="Assignee" type="dropdown">
  The user to assign the ticket to. If round-robin assignment is enabled, you can
  select multiple users to assign tickets to.
</ParamField>

### 9. Close Ticket Action 🎫❌

The **Close Ticket** action allows you to close a ticket in Periskope.

<Frame caption="Close Ticket Action">
  <img className="block border rounded-xl shadow mx-auto mt-4" src="https://mintcdn.com/bharatkumarramesh/p5Zg2yD8SQLzX01k/integrations/automation-rules/images/actions/close-ticket.action.png?fit=max&auto=format&n=p5Zg2yD8SQLzX01k&q=85&s=18932821479cbe6113dcb5582fba598c" alt="Close Ticket Action" width="90%" data-path="integrations/automation-rules/images/actions/close-ticket.action.png" />
</Frame>

**Action Inputs**

<ParamField path="Delay" type="<number> <seconds/minutes/hours/days>">
  The delay before executing the action. You can specify the delay in seconds,
  minutes, hours, or days.
</ParamField>

<ParamField path="Closing Note" type="textarea">
  The note to add when closing the ticket.

  Example: `Ticket has been resolved.`
</ParamField>

### 10. Add Ticket Label Action 🏷️

The **Add Ticket Label** action allows you to add one or multiple label to a ticket.

<Frame caption="Add Ticket Label Action">
  <img className="block border rounded-xl shadow mx-auto mt-4" src="https://mintcdn.com/bharatkumarramesh/p5Zg2yD8SQLzX01k/integrations/automation-rules/images/actions/add-ticket-label.action.png?fit=max&auto=format&n=p5Zg2yD8SQLzX01k&q=85&s=a8197d232d7410b269f9813fd5ce80d3" alt="Add Ticket Label Action" width="90%" data-path="integrations/automation-rules/images/actions/add-ticket-label.action.png" />
</Frame>

**Action Inputs**

<ParamField path="Delay" type="<number> <seconds/minutes/hours/days>">
  The delay before executing the action. You can specify the delay in seconds,
  minutes, hours, or days.
</ParamField>

<ParamField path="Labels" type="dropdown">
  The labels to add to the ticket. You can add multiple labels by selecting from
  the dropdown.
</ParamField>

### 11. Add Chat Label Action 🏷️

The **Add Chat Label** action allows you to add a label to a chat.

<Frame caption="Add Chat Label Action">
  <img className="block border rounded-xl shadow mx-auto mt-4" src="https://mintcdn.com/bharatkumarramesh/p5Zg2yD8SQLzX01k/integrations/automation-rules/images/actions/add-chat-label.action.png?fit=max&auto=format&n=p5Zg2yD8SQLzX01k&q=85&s=eae1f3c1d64b7e6369bd0fb9e4fae17d" alt="Add Chat Label Action" width="90%" data-path="integrations/automation-rules/images/actions/add-chat-label.action.png" />
</Frame>

**Action Inputs**

<ParamField path="Delay" type="<number> <seconds/minutes/hours/days>">
  The delay before executing the action. You can specify the delay in seconds,
  minutes, hours, or days.
</ParamField>

<ParamField path="Labels" type="dropdown">
  The labels to add to the chat. You can add multiple labels by selecting from
  the dropdown.
</ParamField>

### 12. Assign Chat Action 💬👤

The **Assign Chat** action allows you to assign a chat to a user.

<Frame caption="Assign Chat Action">
  <img className="block border rounded-xl shadow mx-auto mt-4" src="https://mintcdn.com/bharatkumarramesh/p5Zg2yD8SQLzX01k/integrations/automation-rules/images/actions/assign-chat.action.png?fit=max&auto=format&n=p5Zg2yD8SQLzX01k&q=85&s=d3d4130084968c5c52bdcfc01b0fdc9d" alt="Assign Chat Action" width="90%" data-path="integrations/automation-rules/images/actions/assign-chat.action.png" />
</Frame>

**Action Inputs**

<ParamField path="Delay" type="<number> <seconds/minutes/hours/days>">
  The delay before executing the action. You can specify the delay in seconds,
  minutes, hours, or days.
</ParamField>

<ParamField path="Round Robin" type="dropdown (true/false)">
  Whether to assign the chat using the round-robin method. You can enable
  round-robin assignment to distribute chats evenly among users.
</ParamField>

<Info>
  Round-robin assignment assigns chats to users in a circular order. Each user
  receives a chat in turn, ensuring an even distribution of chats among users.
</Info>

<ParamField path="Check Assignee status for (Round Robin)" type="dropdown">
  This option is displayed when Round Robin is enabled. It determines how agent availability is considered when assigning chats:

  1. **Consider shift timings**: Only assigns chats to agents who are within their configured work schedule
  2. **Exclude users manually marked as offline**: Only assigns chats to agents who are not manually set to "offline"
  3. **Exclude users marked as offline or away**: Only assigns chats to agents who are not marked as offline or away
  4. **Consider both shift timings and user status**: Only assigns chats when both conditions are met (agent is within shift AND not manually marked offline)

  <Tip>For more details on setting user status and shift timings, check out docs [here](/features/team-access-roles#managing-agent-online-offline-status-and-shift-schedules)</Tip>
</ParamField>

<ParamField path="Assignee" type="dropdown">
  The user to assign the chat to. If round-robin assignment is enabled, you can
  select multiple users to assign chats to.
</ParamField>

### 13. Update Chat Custom Property Action 📃

The **Update Chat Custom Property** action allows you to update a custom property of a chat.

<Frame caption="Update Chat Custom Property Action">
  <img className="block border rounded-xl shadow mx-auto mt-4" src="https://mintcdn.com/bharatkumarramesh/s3KLUqJSJd_cmNXd/integrations/automation-rules/images/actions/ucp-dropdown.action.png?fit=max&auto=format&n=s3KLUqJSJd_cmNXd&q=85&s=b8f1d8577cfa0b65a799e4b1b6a4df1d" alt="Update Chat Custom Property Action" width="90%" data-path="integrations/automation-rules/images/actions/ucp-dropdown.action.png" />
</Frame>

**Action Inputs**

<ParamField path="Delay" type="<number> <seconds/minutes/hours/days>">
  The delay before executing the action. You can specify the delay in seconds,
  minutes, hours, or days.
</ParamField>

<ParamField path="Property" type="dropdown">
  The custom property to update. You can choose from the available custom
  properties.
</ParamField>

<ParamField path="Value" type="string">
  The new value to set for the custom property.

  If the custom property is of type `dropdown`, you can select the option from the dropdown.
  If the custom property is of type `text`, you can enter the text value.
  If the custom property is of type `date`, you can select the date value from the calendar.
</ParamField>

### 14. Send Email Action 📧

The **Send Email** action allows you to send an email notification to any email address.

<Frame caption="Send Email Action">
  <img className="block border rounded-xl shadow mx-auto mt-4" src="https://mintcdn.com/bharatkumarramesh/p5Zg2yD8SQLzX01k/integrations/automation-rules/images/actions/send-email.action.png?fit=max&auto=format&n=p5Zg2yD8SQLzX01k&q=85&s=cfc9a836e487cb02af1786922c9c4e2e" alt="Send Email Action" width="90%" data-path="integrations/automation-rules/images/actions/send-email.action.png" />
</Frame>

**Action Inputs**

<ParamField path="Delay" type="<number> <seconds/minutes/hours/days>">
  The delay before executing the action. You can specify the delay in seconds,
  minutes, hours, or days.
</ParamField>

<ParamField path="Email" type="string">
  The email address to send the email to.
</ParamField>

<ParamField path="Subject" type="string">
  The subject of the email. You can add variables to personalize the subject.

  Example: `New ticket created: {{ ticket.ticket_id || '<fallback>' }}`
</ParamField>

<Tip>
  You can add variables to the subject to personalize the email. Variables
  are placeholders that are replaced with actual values when the email is sent
  and if the variable is not available, the fallback value is used. Use
  variables to include dynamic information in the subject, such as the ticket ID
  or chat name.
</Tip>

<ParamField path="Body" type="editor">
  The email content to be sent. You can add variables to personalize the email.

  Example: `Hello, new ticket {{ ticket.ticket_id || '<fallback>' }} has been assigned to you.`
</ParamField>

<Tip>
  You can add variables to the email body to personalize the email. Variables
  are placeholders that are replaced with actual values when the email is sent
  and if the variable is not available, the fallback value is used. Use
  variables to include dynamic information in the email, such as the ticket ID,
  chat name, or sender name.
</Tip>

### 15. Set Ticket Due Date Action 📅

The **Set Ticket Due Date** action allows you to set a due date for a ticket. The due date will be set after the specified time from the current date and time of rule execution.

<Frame caption="Set Ticket Due Date Action">
  <img className="block border rounded-xl shadow mx-auto mt-4" src="https://mintcdn.com/bharatkumarramesh/9tt6_kyeidDe9NCO/integrations/automation-rules/images/actions/set-ticket-due-date.action.png?fit=max&auto=format&n=9tt6_kyeidDe9NCO&q=85&s=9b9e68e63f2c7efabe822c9d82403979" alt="Set Ticket Due Date Action" width="90%" data-path="integrations/automation-rules/images/actions/set-ticket-due-date.action.png" />
</Frame>

**Action Inputs**

<ParamField path="Delay" type="<number> <seconds/minutes/hours/days>">
  The delay before executing the action. You can specify the delay in seconds,
  minutes, hours, or days.
</ParamField>

<ParamField path="Due After" type="<number> <seconds/minutes/hours/days>">
  The time duration after which the ticket will be due. You can specify the duration in seconds,
  minutes, hours, or days from the current date and time of rule execution.
</ParamField>

### 16. Update Ticket Custom Property Action 📃

The **Update Ticket Custom Property** action allows you to update a custom property of a ticket.

<Frame caption="Update Ticket Custom Property Action">
  <img className="block border rounded-xl shadow mx-auto mt-4" src="https://mintcdn.com/bharatkumarramesh/9tt6_kyeidDe9NCO/integrations/automation-rules/images/actions/utp-dropdown.action.png?fit=max&auto=format&n=9tt6_kyeidDe9NCO&q=85&s=68322e9ff4e9f407065ea5ea27b9fa5f" alt="Update Ticket Custom Property Action" width="90%" data-path="integrations/automation-rules/images/actions/utp-dropdown.action.png" />
</Frame>

**Action Inputs**

<ParamField path="Delay" type="<number> <seconds/minutes/hours/days>">
  The delay before executing the action. You can specify the delay in seconds,
  minutes, hours, or days.
</ParamField>

<ParamField path="Property" type="dropdown">
  The custom property to update. You can choose from the available ticket custom
  properties.
</ParamField>

<ParamField path="Value" type="string">
  The new value to set for the custom property.

  If the custom property is of type `dropdown`, you can select the option from the dropdown.
  If the custom property is of type `text`, you can enter the text value.
  If the custom property is of type `date`, you can select the date value from the calendar.
</ParamField>

### 17. Attach Message To Latest Ticket Action 🎫📎

The **Attach Message To Latest Ticket** action allows you to attach a message to the latest ticket based on ticket statuses. Only applicable if message is present.

<Frame caption="Attach Message To Latest Ticket Action">
  <img className="block border rounded-xl shadow mx-auto mt-4" src="https://mintcdn.com/bharatkumarramesh/9tt6_kyeidDe9NCO/integrations/automation-rules/images/actions/attach-message-to-latest-ticket.action.png?fit=max&auto=format&n=9tt6_kyeidDe9NCO&q=85&s=8c6660c16730161b4f2b54f449bba843" alt="Attach Message To Latest Ticket Action" width="90%" data-path="integrations/automation-rules/images/actions/attach-message-to-latest-ticket.action.png" />
</Frame>

**Action Inputs**

<ParamField path="Delay" type="<number> <seconds/minutes/hours/days>">
  The delay before executing the action. You can specify the delay in seconds,
  minutes, hours, or days.
</ParamField>

<ParamField path="Ticket Status" type="dropdown">
  Select the ticket status of ticket to attach the message to. Options include:

  * **Open/In Progress**: Attach to tickets that are either open or in progress
  * **Open**: Attach only to open tickets
  * **In Progress**: Attach only to in progress tickets

  Only applicable for open or in progress tickets.
</ParamField>

### 18. Close Chat Action 💬❌

The **Close Chat** action allows you to close a chat conversation.

<Frame caption="Close Chat Action">
  <img className="block border rounded-xl shadow mx-auto mt-4" src="https://mintcdn.com/bharatkumarramesh/9tt6_kyeidDe9NCO/integrations/automation-rules/images/actions/close-chat.action.png?fit=max&auto=format&n=9tt6_kyeidDe9NCO&q=85&s=3554df867511dfaabaf0e7472755c9a1" alt="Close Chat Action" width="90%" data-path="integrations/automation-rules/images/actions/close-chat.action.png" />
</Frame>

**Action Inputs**

<ParamField path="Delay" type="<number> <seconds/minutes/hours/days>">
  The delay before executing the action. You can specify the delay in seconds,
  minutes, hours, or days.
</ParamField>

### 19. Send Message To Chat Action 📩💬

The **Send Message To Chat** action allows you to send a message to a specified chat. This is different from the "Send Message" action as it allows you to explicitly select which chat to send the message to.

<Frame caption="Send Message To Chat Action">
  <img className="block border rounded-xl shadow mx-auto mt-4" src="https://mintcdn.com/bharatkumarramesh/9tt6_kyeidDe9NCO/integrations/automation-rules/images/actions/send-messaage-to-chat.action.png?fit=max&auto=format&n=9tt6_kyeidDe9NCO&q=85&s=ef2a5b97889f2dd4ed2c56b87bc1cb0a" alt="Send Message To Chat Action" width="90%" data-path="integrations/automation-rules/images/actions/send-messaage-to-chat.action.png" />
</Frame>

**Action Inputs**

<ParamField path="Delay" type="<number> <seconds/minutes/hours/days>">
  The delay before executing the action. You can specify the delay in seconds,
  minutes, hours, or days.
</ParamField>

<ParamField path="Chat" type="dropdown">
  The chat or group to send the message to.
</ParamField>

<ParamField path="Message" type="editor">
  The message content to be sent. You can add variables to personalize the message.

  Example: `Hello {{ chat.chat_name || '<fallback>' }}, your request has been received.`
</ParamField>

<ParamField path="Media" type="file">
  Optional media file to attach to the message. You can upload an image, video, document, or other supported file type.
</ParamField>

<Tip>
  You can add variables to the message content to personalize the message.
  Variables are placeholders that are replaced with actual values when the
  message is sent and if the variable is not available, the fallback value is
  used. Use variables to include dynamic information in the message, such as the
  chat name, sender name, or ticket ID.
</Tip>

### 20. Send Slack Webhook Notification Action 🔔

The **Send Slack Webhook Notification** action allows you to send a slack webhook notification to a channel.

<Frame caption="Send Slack Webhook Notification Action">
  <img className="block border rounded-xl shadow mx-auto mt-4" src="https://mintcdn.com/bharatkumarramesh/9tt6_kyeidDe9NCO/integrations/automation-rules/images/actions/slack-webhook-notification.action.png?fit=max&auto=format&n=9tt6_kyeidDe9NCO&q=85&s=f23bb2f85874bac49e4c509d1e82ec15" alt="Send Slack Webhook Notification Action" width="90%" data-path="integrations/automation-rules/images/actions/slack-webhook-notification.action.png" />
</Frame>

**Action Inputs**

<ParamField path="Delay" type="<number> <seconds/minutes/hours/days>">
  The delay before executing the action. You can specify the delay in seconds,
  minutes, hours, or days.
</ParamField>

<ParamField path="Webhook URL" type="string">
  The webhook URL to send the notification to. To create a slack incoming webhook to start receiving notifications, check [here](https://api.slack.com/messaging/webhooks).
</ParamField>

<ParamField path="Slack Notification Payload" type="json_editor">
  You can send slack blocks as notifications to the provided hook URL.

  In order to **build a slack notification block**, you can visit [here](https://api.slack.com/block-kit/building).
</ParamField>

### 21. Create Ticket On Freshdesk Action 🎫🔗

The **Create Ticket On Freshdesk** action allows you to create a ticket on Freshdesk. This action requires a Freshdesk integration to be set up.

<Warning>
  This action requires a Freshdesk integration to be configured. Please make sure you have a Freshdesk integration setup before using this action.
</Warning>

**Action Inputs**

<ParamField path="Delay" type="<number> <seconds/minutes/hours/days>">
  The delay before executing the action. You can specify the delay in seconds,
  minutes, hours, or days.
</ParamField>

### 22. Create Ticket On Hubspot Action 🎫🔗

The **Create Ticket On Hubspot** action allows you to create a ticket on Hubspot. This action requires a Hubspot integration to be set up.

<Frame caption="Create Ticket On Hubspot Action">
  <img className="block border rounded-xl shadow mx-auto mt-4" src="https://mintcdn.com/bharatkumarramesh/9tt6_kyeidDe9NCO/integrations/automation-rules/images/actions/create-ticket-hubspot.action.png?fit=max&auto=format&n=9tt6_kyeidDe9NCO&q=85&s=6f7bfa13c4399ad9c7a0931a5ed6d564" alt="Create Ticket On Hubspot Action" width="90%" data-path="integrations/automation-rules/images/actions/create-ticket-hubspot.action.png" />
</Frame>

<Warning>
  This action requires a Hubspot integration to be configured. Please make sure you have a Hubspot integration setup before using this action.
</Warning>

**Action Inputs**

<ParamField path="Delay" type="<number> <seconds/minutes/hours/days>">
  The delay before executing the action. You can specify the delay in seconds,
  minutes, hours, or days.
</ParamField>

### 23. Create Ticket On Zohodesk Action 🎫🔗

<Frame caption="Create Ticket On Zohodesk Action">
  <img className="block border rounded-xl shadow mx-auto mt-4" src="https://mintcdn.com/bharatkumarramesh/9tt6_kyeidDe9NCO/integrations/automation-rules/images/actions/create-ticket-zohodesk.action.png?fit=max&auto=format&n=9tt6_kyeidDe9NCO&q=85&s=4eef8ec88cba67ae9efa00bf7d0f7d73" alt="Create Ticket On Zohodesk Action" width="90%" data-path="integrations/automation-rules/images/actions/create-ticket-zohodesk.action.png" />
</Frame>

The **Create Ticket On Zohodesk** action allows you to create a ticket on Zohodesk. This action requires a Zohodesk integration to be set up.

<Warning>
  This action requires a Zohodesk integration to be configured. Please make sure you have a Zohodesk integration setup before using this action.
</Warning>

**Action Inputs**

<ParamField path="Delay" type="<number> <seconds/minutes/hours/days>">
  The delay before executing the action. You can specify the delay in seconds,
  minutes, hours, or days.
</ParamField>
