Sometimes you'll want to answer with "good morning" or "good afternoon" depending on the time of day.
This article explains how.

Ingredients

  • DATETIME function
  • NOW function
  • Custom data

Recipe

  1. In the custom data table, add the data as shown in the image below

  1. In the content, where you'd like the greeting to appear, write 

|partition.custom_data[DATETIME(NOW(),"p")]| |audience.name|


How does it work?

The function NOW() returns the current date and time and DATETIME formats that information.
"p" means the function will return AM or PM based on whether it's morning or afternoon.

We use AM or PM as the index to the custom data table and hence the persona responds with the message you've given in your custom data according to the AM or PM index.