Skip to main content

Hello,

 

I would like to find an example of PHP or JS code to use Canvas with Intercom.

We use Intercom for communication with visitors to our site and our LMS.

We would like to be able to insert dynamic information at specific times.

For example, when a student connects to our LMS and needs to follow a training course.

We would like to be able to send him an automatic message indicating the link where to sign his attendance sheets and the link to join his virtual class on video.

This information is personalized for each student, so we need to inject it at a specific time for a specific person, but without them necessarily being registered on Intercom.

 

I went through the documentation and it seemed to me that the Canvas answered this request.

But when I try to create an APP and use Canvas options I get stuck.

I have well informed WebHooks to configuration pages in PHP on our site and nothing seems to work.

 

Would you be kind enough to offer me an explanation and/or a small piece of code to start ?

 

Thanks in advance.

 

Hey @cyril m​! Daniel from Customer Support Engineering here 🔧 

 

Your users would need to exist within Intercom to be targeted by our messages. To clarify, apps are primarily used within the Inbox as tools for Customer Support specialists, or within the Messenger by users. If you're looking to send an automatic message, you might not find an app to be useful. I think that using regular Outbound content such as an email or chat would work here. Since your users don't exist in Intercom, you'll want to import a list of them via CSV, using their emails to create the profiles and then send the message. You could create the dynamic information needed (link population values, etc.) as a custom attribute, and then insert it dynamically (i.e., the value will change based on the user) into the message.

 

If you really need to do this via a Messenger app, you would need to utilise your own API to grab the information, and pass it over in the Submit request. At this point, it becomes more of a JavaScript challenge than a Canvas Kit challenge. Of course, if you experience errors or other issues with Canvas Kit, please contact us via the Messenger and we'll troubleshoot it.

 

Hope this helps 👍


Reply