Skip to main content

Script development in J‑Graph

The script contains the bot operation logic that you design in the J‑Graph editor. The script consists of states, which are the units making the bot wait for user actions and react to them.

Blocks

You can fill the script states with different blocks:

BlocksPurpose
User phrases and events
Triggers
Recognizing user phrases and events during the dialog and making transitions between script states.
Bot reactionsPerforming actions on making state transitions, such as sending text messages, buttons, or file attachments.
Bot actionsPerforming complex and frequently repeated bot actions or script fragments, such as an HTTP request.

Saving and discarding changes

While working in J‑Graph, you can save the script with the changes you have made as a new version:

  1. Select Save script in the top left corner.
  2. If needed, leave a comment on the changes, then select Save.
tip
Once the changes are saved, you can deploy the new script version to the necessary channel.

At any time, you can also roll back the script to the previously saved version. To do this, select Discard changes.