payload handling in custom table template

Hi team, I have made a custom table template, where as my requirement is to get a table row data on click into bot message node/some entity, how can I handle this use case.