OK, I have a better understanding now.
Intercom does provide webhooks that you can "listen" and then react (instead of constantly asking through Intercom API).
Also Intercom provides a framework (Canvas Kit) for creating Intercom apps that can be embedded into the chat:
- in the conversation like you mention - this is called Messenger app - similar to how Intercom Articles can be embedded into a conversation, event the search function works;
-or-
- as an Inbox app, that can be "installed" on the right panel in inbox.
For Webhooks start from here
https://www.intercom.com/help/en/articles/305-webhooks
https://developers.intercom.com/building-apps/docs/setting-up-webhooks/p>
https://developers.intercom.com/intercom-api-reference/reference/webhooks/p>
And for creating an Intercom app and using Intercom API read this:
https://www.intercom.com/help/en/articles/308-get-started-building-on-intercom/p>
https://developers.intercom.com/building-apps/docs
So, from what I understand you would be using the Webhooks to "listen" the Intercom messages and based on the content you could trigger the message back (using Intercom API) with an LemonadeLXP Intercom app (that you would build using Intercom Canvas Kit and that is installed in your client's Intercom workspace) that will appear with suggested content and/or with a search function.
I'm just not sure you can send apps in the conversation using Intercom API. That's something that seems not supported. To do so perhaps you might want to set up something else - a Custom bot that chats with an end user and at certain point (where needed) it triggers the app you built and installed on that Intercom workspace and that is embedded in that bot conversation.
I hope this helped. Sorry if I misunderstood something - perhaps we can have a live chat about this and maybe I have some examples to show you that can spark your further thoughts about this