You can add a slot {modifier} , which can take several keywords, such as "back" and "now." Then the intention could have something like the following statements:
{ "name": "TimeTest", "samples": [ "what happened {time} {modifier}", "what will happen {time} {modifier}" ], "slots": [ { "name": "time", "type": "AMAZON.TIME", "samples": [] }, { "name": "modifier", "type": "custom_time_modifier", "samples": [] } ] }
with the following type of modifier:
"types": [ { "name": "custom_time_modifier", "values": [ { "id": null, "name": { "value": "ago", "synonyms": [ "in the past" ] } }, { "id": null, "name": { "value": "from now", "synonyms": [ "in the future" ] } } ] }
source share