The Block SDK for Salesforce Marketing Cloud Content Builder simplifies third-party block development. It provides domain validation and simple method calls for cross-document messaging. Marketing teams and developers can use it to create custom blocks that integrate with Salesforce Marketing Cloud.
git clone https://github.com/salesforce-marketingcloud/blocksdk.gitThe Block SDK for Salesforce Marketing Cloud Content Builder simplifies third-party block development. It provides domain validation and simple method calls for cross-document messaging. Marketing teams and developers can use it to create custom blocks that integrate with Salesforce Marketing Cloud.
No install command available. Check the GitHub repository for manual installation instructions.
git clone https://github.com/salesforce-marketingcloud/blocksdkCopy the install command above and run it in your terminal.
Launch Claude Code, Cursor, or your preferred AI coding agent.
Use the prompt template or examples below to test the skill.
Adapt the skill to your specific use case and workflow.
Using the Block SDK for Salesforce Marketing Cloud Content Builder, create a custom block for [COMPANY] that integrates with [INDUSTRY]-specific data from [DATA]. The block should allow users to [SPECIFIC_ACTION] and validate domain-specific inputs. Provide the necessary code snippets and a brief explanation of the integration process.
# Custom Block for Salesforce Marketing Cloud Content Builder ## Overview This custom block is designed for RetailCo to integrate with their e-commerce data from Shopify. The block allows marketing teams to dynamically pull product information and create personalized email content based on customer purchase history. ## Features - **Dynamic Product Information**: Pulls real-time product data from Shopify. - **Personalized Content**: Generates tailored email content based on customer purchase history. - **Domain Validation**: Ensures all inputs are validated against RetailCo's domain-specific requirements. ## Integration Process 1. **Install the Block SDK**: Ensure the Block SDK is installed in your Salesforce Marketing Cloud environment. 2. **Create a New Block**: Use the SDK to create a new block and define the necessary parameters. 3. **Integrate with Shopify**: Connect the block to Shopify's API to pull product data. 4. **Validate Inputs**: Implement domain validation to ensure all inputs meet RetailCo's requirements. 5. **Deploy the Block**: Test the block thoroughly and deploy it to the Content Builder platform. ## Code Snippets ```javascript // Example code snippet for pulling product data from Shopify const productData = await shopifyAPI.getProducts(); // Example code snippet for validating domain-specific inputs const validatedInputs = domainValidator.validate(inputs); ```
Take a free 3-minute scan and get personalized AI skill recommendations.
Take free scan