Link back to your app

Email and SMS notifications can include a link back to your site, the 'inbox URL', which you can configure on the Notifications page of the TalkJS Dashboard. You can set up the inbox URL to link directly to the relevant conversation or location.

If you are using an inbox page on https://yoursite.com/inbox, you can give this inbox URL an optional parameter that preselects the appropriate conversation, for example https://yoursite.com/inbox?conversation=123456.

In the email settings on your dashboard, you can then use template macros to make TalkJS build the appropriate link as follows: https://yoursite.com/inbox?conversation={{conversation.id}}.

You can also make the Inbox URL lead straight to the page about a product or order, and embed a chatbox or pop-up widget there. In this case, you can build a link that contains the appropriate product or order ID.

If you used the order ID for a conversation ID then you can use a similar URL as above: https://yoursite.com/orders/{{conversation.id}}.

If the conversation ID is different from the relevant order or product ID, then you can add a custom field to the conversation to identify the order or product. For example, you could pass {"productId": "12345"} when creating the conversation, and then configure the inbox URL as follows: https://yoursite.com/orders/{{conversation.custom.productId}}