Content Transformers
Last updated
Last updated
Content Transformers are a powerful method to massage Social Post data both after AI generation and prior to publication so a Social Platform.
In some cases, AI generated content won't be perfect! In those cases, you may wish to intercept that content and edit it before it is visible to your audience.
Or, when posting to certain Social Platforms, specific data transforms may be necessary for things like adding @mentions to the Social Post or editing post content to match Social Platform requirements.
In both of these cases, you can use Content Transformers to update post content prior to draft or publication.
Type:
Before Draft: Occurs prior to 'Draft' state for the Social Post and for all Social Platforms. These changes will be visible on the Social Post record.
Before Publish: Occurs immediately prior to publication, and only for the Social Platforms listed in the related list for that Content Transformer. These changes will only be visible once the post is live on the Social Platform.
You can test 'Before Publish' Content Transformers by clicking the Test "Pre-Publish" Content Transformers link on the Social Post. The results will be posted to the Activity Log of the Social Post.
Script: Server script to transform data. Both the postContent string and postRec GlideRecord are provided as variables. Set the resulting content as the answer variable.