Builtin Card programatically - example needed

Hello,

can someone share a functional example of a builtin_card created programatically. I did manage to display one into my chatbot but I don’t know how to display the buttons. I’m interested in the postback mainly, but other examples could be useful for other developers.

This is what I did:

    const userId = event.target;
    const botId = event.botId;
    const channelId  = event.channel
    const eventDestination = {target:userId,botId:botId,channel:channelId}

    const payloads = await bp.cms.renderElement("builtin_card", { typing: true, items: [{ title: "Title", subtitle: "Subtitle"}] }, eventDestination)
    await bp.events.replyToEvent(eventDestination, payloads)