Helper functions for webhook transformations

Sometimes there is a need for trimming or modifying certain fields before delivering them to a webhook target. Contentful now provides numerous helpers that can be used at the transformation level.

This example limits the content field to its first 2 paragraphs. If the content field has more than two paragraphs, the rest of the text gets trimmed. In addition to trimming content, helpers are useful in modifying or refining content.

We are adding helpers for:

  • limiting characters
  • limiting words
  • limiting paragraphs
  • stripping stop words
  • removing markdown
  • stringifying a JSON object

More detail in the API documentation

Helper functions for webhook transformations | Contentful