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:
Blocks | Purpose |
---|---|
User phrases and events Triggers | Recognizing user phrases and events during the dialog and making transitions between script states. |
Bot reactions | Performing actions on making state transitions, such as sending text messages, buttons, or file attachments. |
Bot actions | Performing 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:
- Select → Save script in the top left corner.
- 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.