Can I create "set variable values with timestamps"

I would like to save my attributes values with timestamp like chatfuel and manychat did . Is there any way to do that ? Thank You .

Hi @toeyadanar and welcome to the Botpress community forum!

You can create a custom action using moment, which is built into Botpress:

  /**
   * Save timestamp in temp.ts
   * @title Timestamp
   * @category Custom
   * @author MJ
   */
  const myAction = async () => {
    const moment = require('moment')
    temp.ts = moment()
  }

  return myAction()

image

Hope this helps!
Happy Building :robot:

Thank you so much , That work for me :innocent:

1 Like