Scripting Limitations for CXone 机器人生成器
Custom scripts written in 机器人生成器 operate on the server. This page details the current restrictions that ensure optimal performance for both the scripts and the server.
- Structure: All code must be contained within a function, such as the default main. Code outside of a function will not be executed.
- Maximum event limit: Each script is limited to a maximum of 200 events per script run. Events include each function and any actions triggered by each function.
- Memory limit: Each script run is allowed a maximum of 10MB of memory.
- Execution time limit: The execution of each script is limited to 10 seconds.
- Invocation limit for bot functions: The following bot functions can be invoked a maximum of 20 times each per script run:
- sendMessage
- sendButtons
- sendQuickReplies
- sendCards
- sendMultimedia
- sendRichLink
- sendListPicker
- handover
- addTags
- waitforResponse
- Invocation limit for fillSlot: The fillSlot function can be invoked a maximum of 100 times per script run.
- Invocation limit for console function: The following console functions can be invoked a maximum of 100 times each for every script run:
- log
- info
- warn
- debug
- error
- Invocation limit for fetchSync: The fetchSync method can be invoked up to 20 times for each script run.