Skip to main content
Answered

How to modify the message input (in the agent inbox) depending on the conversation platform/origin.


Hi, I'm looking to integrate Discord with Intercom. We added the intercom Facebook app/integration and noticed it restricted the inbox message input to text/emoticon options (see attached image).

We'd like to restrict the message input for our discord app/integration as well, however, we cannot find any references to the message input in the API/canvas kit. Thanks,

 

Justin Luce

Best answer by Eric Fitz

Hey @user967​! Are you using a third-party Discord<>Intercom integration, or are you building your own?

 

If the former, you'd need to contact the third party who designed it with your query, as we wouldn't know or manage how it works.

 

If the latter, you'd need to add this extra restriction as a custom implementation in your own server. If you're using our REST API so that Discord messages > Intercom, you'll need to do restrictions on your server in the middle step of data flow from Discord > your server > Intercom.

 

If you're somehow using Canvas Kit to build this integration between Discord and Intercom, we'd need more info on how you're doing this before we can advise.

View original
Did this topic help you find an answer to your question?

5 replies

Eric Fitz
Employee
Forum|alt.badge.img+5
  • Employee
  • 1630 replies
  • Answer
  • March 16, 2021

Hey @user967​! Are you using a third-party Discord<>Intercom integration, or are you building your own?

 

If the former, you'd need to contact the third party who designed it with your query, as we wouldn't know or manage how it works.

 

If the latter, you'd need to add this extra restriction as a custom implementation in your own server. If you're using our REST API so that Discord messages > Intercom, you'll need to do restrictions on your server in the middle step of data flow from Discord > your server > Intercom.

 

If you're somehow using Canvas Kit to build this integration between Discord and Intercom, we'd need more info on how you're doing this before we can advise.


  • Author
  • New Participant
  • 2 replies
  • March 18, 2021

Thanks for the response, we're developing our own. We can limit the API to only handle text, however, we'd like to limit the intercom message composer to text (no articles, apps, etc.)


Eric Fitz
Employee
Forum|alt.badge.img+5
  • Employee
  • 1630 replies
  • March 19, 2021

If you've limited the API to only handle text, this should also be reflected in the composer. Is this not the case in your testing?


  • Author
  • New Participant
  • 2 replies
  • March 29, 2021

Do you mind going into a bit more detail regarding that statement? Our current (planned) architecture is Intercom webhook (conversation.admin.replied/opened/closed) -> our servers -> Discord and Discord -> our servers -> Intercom REST API. The webhook (as far as we can tell) provides no option/s to limit the type of message sent.


Eric Fitz
Employee
Forum|alt.badge.img+5
  • Employee
  • 1630 replies
  • April 1, 2021

Hey @user967​, apologies for the delay in my response, I'm trying to get the information you need from our Support engineers who look after app development questions (it wouldn't be my own speciality!)

 

The thing is, if you're leveraging our own API in some way, the only available message types are in-app or email. For in-app messages, these are designed to create a message that will then be sent/appear via the Messenger.

 

If Intercom messages and conversations are created by our API, they look to always have ability to insert articles, macros, GIFs, attachments, image and emoji options (but not apps).

 

If you still wanted to restrict those different types of content, you'll need to handle them in a middle step between the reply being sent from Intercom > Discord.

 

e.g. if someone sends a GIF in an Intercom reply, this triggers the Intercom webhook with the reply data to your server. You would need to cut out this GIF content in your server before sending to Discord.

 

Essentially, you wouldn't be able to stop teammates/users from inserting these in their replies, but you would be able to remove the content from the message, on your own server, before it's sent to Discord.


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings