AI task for date ranges
# 🤝help
n
https://mediafiles.botpress.cloud/1ee2cd25-f06f-4771-99c5-d040e5392c5d/webchat/bot.html AI task extracts date range from raw input. Partial dates like "schedule meeting on 8/9 - 11" become 2 full dates,. AI task does the job with full dates. The partial date to full date has dates in the past. how to ensure these dates are in the future. Searching a range of future dates on a calendar for open meeting times. Question is How to create an AI task to move the dates to the future. All attempts to move the start and end dates failed. Please suggest a path, prefer to us AI task and avoid execute code.
AI task instruction experimentation created the desired result after adding a goal statement to proceed other instructions. working instructions... Goal is to find future dates (dates after current date) in the sentence below, Extract the first full date from the sentence below. Extract all dates in the sentence below. add the current year when missing. Save the all dates into the variable Date Range String, save the first date into start date. if a second date save into end date. when start date is valid date and end date is valid date then set variable provided true.
Issue resolved by adding current date and requesting a future date in the AI instructions.
16 Views