Вам необходимо передать эти данные в код выполнения вашего веб-крючка,
agent.add(new Card({
title: `Title: this is a card title`,
imageUrl: imageUrl,
text: `This is the body text of a card. You can even use line\n breaks and emoji! ?`,
buttonText: 'This is a button',
buttonUrl: linkUrl
})
);
Подробное описание можно посмотреть здесь ,