> ## Documentation Index
> Fetch the complete documentation index at: https://docs.agentforcemcp.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Social Media Content Generation from Top Email Campaigns

> Leveraging Marketing Cloud Analytics, Adobe Experience Manager, and Asana to create social media content based on high-performing email campaigns.

## Scenario

A Marketing Manager wants to repurpose their most successful email campaign content for social media channels. The goal is to identify the top 3 performing email campaigns from the past month, extract key messaging and subject lines, generate social media post copy for Instagram and Facebook, suggest relevant images from Adobe Experience Manager, and create review tasks in Asana for the social media team to finalize and publish.

This automated workflow transforms email marketing insights into social media content opportunities, ensuring consistent messaging across channels while leveraging proven high-performing content.

## Actors

* Marketing Manager
* Social Media Manager
* Agentforce Agent (powered by ACP)

## ACP Components Involved

* **Marketing Cloud Analytics Connector:**
  * `marketing_cloud_get_top_performing_emails`: To identify the best performing email campaigns from the past month.
  * `marketing_cloud_get_email_engagement_data`: To retrieve detailed engagement metrics and content details.
  * `marketing_cloud_get_campaign_performance`: To get comprehensive performance data for context.

* **Adobe Experience Manager Connector:**
  * `aem_search_assets`: To find relevant images based on campaign themes or keywords.
  * `aem_get_asset_renditions`: To retrieve different image sizes suitable for social platforms.
  * `aem_get_asset_metadata`: To understand image context and usage rights.

* **Asana Connector:**
  * `asana_create_task`: To create review tasks for each social media post.
  * `asana_create_project`: To organize social media content tasks (if needed).
  * `asana_add_comment`: To provide detailed instructions and context.
  * `asana_create_attachment`: To attach suggested images to tasks.

## Workflow

```mermaid theme={null}
sequenceDiagram
    participant MM as Marketing Manager
    participant AFA as Agentforce Agent (ACP)
    participant MCA as Marketing Cloud Analytics
    participant AEM as Adobe Experience Manager
    participant ASN as Asana

    MM->>AFA: "Create social posts from top email campaigns"
    AFA->>MCA: "marketing_cloud_get_top_performing_emails"
    Note over MCA: Filter: Past 30 days, Top 3 by engagement
    MCA-->>AFA: Top 3 Email Campaigns with Performance Data

    loop For Each Top Campaign
        AFA->>MCA: "marketing_cloud_get_email_engagement_data"
        MCA-->>AFA: Campaign Details (Subject, Content, Metrics)
        
        Note over AFA: Extract key messaging and themes
        Note over AFA: Generate Instagram & Facebook post copy
        
        AFA->>AEM: "aem_search_assets" (based on campaign keywords)
        AEM-->>AFA: Relevant Image Assets
        
        AFA->>AEM: "aem_get_asset_renditions" (for social formats)
        AEM-->>AFA: Image Options with Different Sizes
        
        AFA->>ASN: "asana_create_task" (Social Media Review)
        ASN-->>AFA: Task Created
        
        AFA->>ASN: "asana_add_comment" (Post copy + instructions)
        AFA->>ASN: "asana_create_attachment" (Suggested images)
    end

    AFA-->>MM: Summary: 3 Social Media Tasks Created
    Note over MM: Review tasks assigned to Social Media Manager
```

## Step-by-Step Process

### 1. Identify Top Performing Email Campaigns

The Agentforce agent queries Marketing Cloud Analytics to find the highest performing email campaigns from the past month:

```json theme={null}
{
  "tool": "marketing_cloud_get_top_performing_emails",
  "parameters": {
    "metric_type": "engagement_rate",
    "date_range": "past_30_days",
    "limit": 3,
    "campaign_filter": "sent_campaigns"
  }
}
```

### 2. Extract Campaign Details

For each top-performing campaign, retrieve detailed engagement data and content:

```json theme={null}
{
  "tool": "marketing_cloud_get_email_engagement_data",
  "parameters": {
    "email_id": "campaign_email_id",
    "date_range": "past_30_days",
    "engagement_types": ["opens", "clicks", "conversions"]
  }
}
```

### 3. Generate Social Media Copy

The agent analyzes the email content (subject lines, key messaging, call-to-actions) and creates adapted versions for social media:

* **Instagram Post:** Visual-focused, hashtag-optimized, engaging copy
* **Facebook Post:** Longer-form content with clear call-to-action
* **Platform Optimization:** Tailored for each platform's best practices

### 4. Source Relevant Images

Search Adobe Experience Manager for images that match the campaign themes:

```json theme={null}
{
  "tool": "aem_search_assets",
  "parameters": {
    "search_query": "campaign_keywords_and_themes",
    "asset_type": "image",
    "tags": ["social_media", "approved"],
    "limit": 5
  }
}
```

### 5. Get Optimized Image Renditions

Retrieve different image sizes suitable for social platforms:

```json theme={null}
{
  "tool": "aem_get_asset_renditions",
  "parameters": {
    "asset_path": "/content/dam/marketing/images/selected_image",
    "rendition_types": ["instagram_square", "facebook_landscape", "story_vertical"]
  }
}
```

### 6. Create Asana Review Tasks

For each social media post, create a task in Asana for the social media team:

```json theme={null}
{
  "tool": "asana_create_task",
  "parameters": {
    "name": "Review Social Post: [Campaign Name] - Instagram",
    "notes": "Generated from top-performing email campaign. Please review copy and select final images.",
    "assignee_gid": "social_media_manager_id",
    "project_gid": "social_media_content_project",
    "due_date": "2024-01-15"
  }
}
```

### 7. Add Detailed Instructions

Provide comprehensive context and instructions in task comments:

```json theme={null}
{
  "tool": "asana_add_comment",
  "parameters": {
    "task_gid": "created_task_id",
    "text": "INSTAGRAM POST COPY:\n[Generated copy]\n\nORIGINAL EMAIL PERFORMANCE:\n- Open Rate: 28.5%\n- Click Rate: 4.2%\n- Engagement Score: 85/100\n\nSUGGESTED HASHTAGS:\n#marketing #engagement #conversion\n\nIMAGE OPTIONS:\nSee attached image suggestions with different formats.",
    "is_pinned": true
  }
}
```

## Expected Outcomes

### Immediate Results

* **3 Asana Tasks Created:** One for each top-performing email campaign
* **Social Media Copy Generated:** Instagram and Facebook versions for each campaign
* **Image Suggestions Provided:** 3-5 relevant images per campaign from AEM
* **Performance Context:** Original email metrics included for reference

### Business Benefits

* **Content Efficiency:** Repurpose proven high-performing content
* **Cross-Channel Consistency:** Maintain brand messaging across email and social
* **Data-Driven Decisions:** Leverage analytics to inform social media strategy
* **Workflow Automation:** Reduce manual research and content creation time
* **Quality Control:** Structured review process through Asana tasks

## Task Details in Asana

Each created task includes:

### Task Information

* **Title:** "Review Social Post: \[Campaign Name] - \[Platform]"
* **Assignee:** Social Media Manager
* **Due Date:** 3-5 business days from creation
* **Project:** Social Media Content Review
* **Priority:** Based on original email performance

### Task Description

* **Generated Copy:** Platform-optimized social media text
* **Original Performance:** Email campaign metrics and context
* **Suggested Hashtags:** Relevant hashtags for the platform
* **Image Options:** Links to suggested AEM assets
* **Brand Guidelines:** Reminders about voice, tone, and compliance

### Attachments

* **Image Renditions:** Social media optimized image formats
* **Performance Report:** Original email campaign analytics
* **Brand Assets:** Logo, fonts, or other required brand elements

## Customization Options

### Campaign Selection Criteria

* **Performance Metrics:** Open rate, click rate, conversion rate, engagement score
* **Time Periods:** Last 7 days, 30 days, quarter, or custom date ranges
* **Campaign Types:** Promotional, educational, seasonal, product launches
* **Audience Segments:** B2B, B2C, specific demographics

### Content Adaptation

* **Platform Variations:** Instagram Stories, Facebook carousel, LinkedIn posts
* **Content Types:** Image posts, video content, carousel posts
* **Messaging Tone:** Professional, casual, urgent, educational
* **Call-to-Actions:** Drive traffic, generate leads, increase awareness

### Image Selection

* **Asset Categories:** Product images, lifestyle photos, graphics, illustrations
* **Brand Compliance:** Approved assets only, specific color schemes
* **Format Requirements:** Square, landscape, portrait, story formats
* **Usage Rights:** Commercial use, social media approved, time-limited

## Success Metrics

### Process Efficiency

* **Time Savings:** Reduction in manual content creation time
* **Task Completion Rate:** Percentage of Asana tasks completed on time
* **Content Quality:** Approval rate of generated social media posts

### Content Performance

* **Social Media Engagement:** Likes, shares, comments on published posts
* **Cross-Channel Consistency:** Brand message alignment between email and social
* **Content ROI:** Performance comparison between repurposed and original content

### Team Productivity

* **Workflow Adoption:** Team usage and satisfaction with automated process
* **Review Efficiency:** Time spent on content review and approval
* **Content Output:** Increase in social media posting frequency and quality
