Workflows exporting and reimporting help articles | Community
Skip to main content
Hi there, I'm looking for example workflows pulling help article content via API and then reimporting them back to intercom.
I'm a bit stuck at the moment as I try and pull articles using the Articles API, make edits, and push them back, but the formatting gets completely destroyed in the process.
Specifically:
  • When I pull an article using GET /articles/{id}, the HTML looks properly formatted with Intercom's wrapper divs and spacing
  • When I push the exact same content back using PUT /articles/{id}, Intercom's API automatically modifies the HTML and removes empty <p class="no-margin"></p> elements
  • This breaks the visual spacing and layout that was working before
Example of what happens:
  • Before API call: <p>Content</p><p class="no-margin"></p><p>More content</p> (proper spacing)
  • After API call: <p>Content</p><p>More content</p> (no spacing, content runs together)
Has anyone successfully implemented a workflow for editing articles via API while preserving the original Intercom formatting? Are there specific HTML patterns or attributes that Intercom requires to maintain proper spacing and layout? Any insights or working examples would be greatly appreciated!
Be the first to reply!

Reply