I guess you need this?

```js
if (typeof activityRequest.source.data.postback != 'undefined') {
  postback = activityRequest.source.data.postback;
}
```