Custom Steps
InSkill supports custom steps that allow you to build customizable workflows and behaviors. If a step has script or web tags, the body will have js that can take actions. The following apis are available to set data and control the session.
Add or Change Data
inskill_data({"pressure": 33.8});
or
Inskill.Session.data({"pressure": 33.8, "pump.voltage": 120});
sends the json data to the task to add/change data. In this case, the variable pressure is set to 33.8.
Move the session to the next step
inskill_message({"continue":''})
or
Inskill.Session.message({"continue":''});
Continue says to automatically go on to the next step, like if the user pressed the continue button.
inskill_message({"finished":''})
or
Inskill.Session.message({"finished":''});
Finished says to automatically end the task, like if the user pressed the Finished button.
inskill_message({"end":''})
or
Inskill.Session.message({"end":''});
End says this is the last step, so don't show any buttons to the user (such as continue, not solved, or finished buttons).
Updated 3 days ago