Skip to main content

 

We're experiencing an issue with the Help Center search functionality in our embedded Intercom Messenger. The search works correctly when accessing the Help Center directly or Help tab in the messenger, but it's not returning any results when used within the chat. Please check the attached video.

Here are the key details:

  1. Setup:
    • Next.js application hosted on Google Cloud Run
    • Using Cloudflare as our CDN
    • Intercom Messenger embedded in our app (react-use-intercom)
    • Article search is prompted in chat with automation
    • Custom domain is mapped to help center
  2. Issue:
    • Help Center search returns no results when used in the embedded Messenger
    • The same search works fine when accessing the Help Center directly
  3. Troubleshooting steps taken:
    • Verified Intercom integration settings
    • Checked Cloudflare configuration for query string and cookie forwarding
    • Reviewed Google Cloud Run settings
    • Inspected network requests in browser dev tools
    • Disabled custom domain for help center
    • Switched help center in Connect Messenger with Help Center
    •  
  4. Suspicions:
    • We suspect this might be related to header, cookie, or query string forwarding issues between Cloudflare, our Cloud Run service, and Intercom's API
  5. Questions:
    • Are there specific headers, cookies, or query parameters that need to be forwarded for the Help Center search to function correctly in an embedded context?
    • Do you have any recommended configurations for Cloudflare or Google Cloud Run when using the embedded Messenger with Help Center integration?
    • Are there any known issues or limitations with the Help Center search in embedded Messengers, particularly in Next.js applications?

We would greatly appreciate any guidance you can provide to help us resolve this issue. If you need any additional information or logs, please let us know, and we'll be happy to provide them.

Thank you for your assistance.

Hi @Tofu ! Ebenezer here from Engineering Support👋.

Could you check if you are getting any console errors when this happens?

Might help us figure out the cause.


 

Hi Ebenezer, thanks for the support, but it’s not happening anymore. We didn’t do anything so probably your team has fixed it?


@Tofu i’m having an issue with the private help center. i think it has to do with the cloudflare and cookie forwarding. i noticed that you wrote:“Checked Cloudflare configuration for query string and cookie forwarding”
where can i find those settings in cloudflare?


Hey @curtis, Emily here from Support Engineering 👋🏼
 

To find and configure query string and cookie forwarding in Cloudflare:

Cache Settings (Query Strings)

  • Go to Caching → Configuration.
  • Choose from options like Ignore Query String or Cache Everything to manage how query strings are handled.


Page Rules (Advanced Control)

  • Go to Page Rules.
  • Create a rule for specific URLs to control caching, query string handling, and cookie forwarding.

This will allow more control over how requests with query strings and cookies are managed.


hi @Emilygav, thanks for your reply. we solved the issue—we had to do some extra coding and setting up of a proxy server and now everything is workin as expected.


Reply