Skip to main content

Actions

In the J‑Graph visual editor, the bot business logic is built upon states. Blocks describe how the bot can switch between states and what it should do after switching.

tip
Actions are a specific type of reactions. They execute complex and frequently repeated bot actions or script fragments, such as an HTTP request or a transfer to an agent.

Built-in actions

J‑Graph provides a number of built-in action blocks:

  • Actions with Google Sheets
  • End session
  • HTTP request
  • Request confirmation
  • Request file
  • Request number
  • Request phone number
  • Request text
  • Send email
  • Send SMS
  • Telegram payment
  • Transfer call to agent
  • Transfer chat to agent
caution
References for the majority of these blocks are currently in development. For now, you can refer to the references for corresponding JAICP DSL built-in action tags. All the parameters you see in the actions editing interface correspond to the equivalent tag parameters.

How to create custom actions

Advanced feature

If the features of built-in actions aren’t enough for you, you can create your own. Using custom actions, you can implement any kind of bot business logic and reuse it in different parts of your script.

tip
To create an action, follow the step-by-step guide to create a custom action tag. Doing all the steps will not only enable you to use this tag in the script code, but also make the corresponding block automatically appear in J‑Graph.