https://discord.gg/botpress logo
you can create a custom code card using this scrip...
# 💻developers
e
you can create a custom code card using this script
Copy code
const ticketId = workflow.ticketId || Math.random().toString(36).substr(2, 9) // Generate a random ticket ID if workflow.ticketId is not defined
workflow.ticketId = ticketId // Assign the generated or existing ticket ID back to workflow