Loading...

Social media content creator with AI Promts

Social media content creator with AI Promts
Featured image of post Social media content creator with AI Promts

Prerequisites

For this tutorial you need the following:

Create AI Prompt in Power Platform

  1. Go to Power Automate

  2. Click on AI hub in the left navigation

  3. Choose AI Prompts

  4. Click on Create text using custom prompt

  5. Choose Custom task with custom prompts and click on Create custom prompt

  6. Enter a name for your AI Prompt

  7. Enter your prompt (here is what I used for my prompt)

    As an expert in social media, create me witty posts for my social networks (Bluesky and Mastodon) with meaningful hashtags (Microsoft centric) about my newest Blog post that you can find here: [Dynamic Value BlogURL] . Also please take the lowest character count into consideration for the two networks. Also create another post for LinkedIn that can be a bit longer. Please create the posts in a way that will make my followers want to know more about the blog post e.g. with examples or some insides. Please also don’t add any BlogURL. Please just response the post without any explanations. but in the following format: { “ShortPost” : Post text for BlueSky and Mastodon, “LinkedInHeading” : Headline for LinkedIn Post, “LinkedInPost” : Post text for LinkedIn }

Create the Flow in Power Automate

This is the Flow I created for writing post on social media. I will explain the steps in the following sections.

  1. “Manually trigger a flow” (this is the trigger) Of course you could also use another trigger like schedule post from a calendar .
  2. “Get Item” from SharePoint Online. This step gets the URL of the newest blog post from my SharePoint Blog list.
  3. “AIBuilder Predict Custom Prompt” from Common Data Service for Apps. This step uses the AI Prompt we created in the previous section to create the post text for the social media networks.
  4. “Start and Wait for a Text Suggestion Approval” from Approvals. This step waits for the approval of the post text. I use this step to check the post text before it is posted on social media. If you don’t want to check the post text before it is posted on social media you can skip this step and go directly to the next step.
  5. “Parse JSON”. This step parses the JSON from the previous step and creates the variables for the post text. Copy the JSON from the AI Builder step and paste it into the “Schema” field.
  6. “Condition”. This step checks if we approved the AI generated post text or not. If we approved the post text it will go to the next step. If we didn’t approve the post text it will go to the “Condition - No” step which will lead to the end of the Flow.
  7. “Apply to each”. This step will create a post for each social media network that we put in the Column in the SharPoint list. With the “switch” step we are running the “Run a Child Flow” step to create the post for each needed social media network. As you can see this is a very simple Flow. But it will save you a lot of time and you can be sure that your post text is correct. Now let’s see how you will use this Flow to create your social media posts. Please leave a comment if you have any questions or suggestions. Also please share your use cases for this Flow.

Published on:

Learn more
Need help with this product?

We can help you with Social media content creator with AI Promts

If you want help implementing, troubleshooting, or improving this product, contact us and we’ll point you in the right direction.

The State of the Microsoft 365 Nation
The State of the Microsoft 365 Nation

Recent content on The State of the Microsoft 365 Nation

Share post:

Related posts

Creating Copilot Studio Agents Without an M365 Copilot Premium License

A common assumption when getting started with Copilot Studio is that you need a full Microsoft 365 Copilot Premium license. That assumption is...

5 months ago

Power Automate: Get events (V4) shared mailbox fix

When your flow reads a shared mailbox calendar using the Office 365 Outlook → Get events (V4) connector, it can fail in a way that looks like...

6 months ago

Using Managed Identity with Azure Automation & PnP.PowerShell

How to Set Up a Managed Identity for Azure Automation Runbooks and Use It in PowerShell Scripts with PnP.PowerShell This guide walks you throu...

1 year ago

UPDATED - Set Up Pay-as-you-go M365 Chat & SharePoint Agents

Introduction to Pay-as-You-Go Agents in Microsoft 365 Microsoft has introduced a flexible way for organizations to leverage AI capabilities wi...

1 year ago

How to Use Flexible Sections in SharePoint Pages and News

If you’ve been using SharePoint Online to build pages or share news, you know how important it is to have a layout that works for your c...

1 year ago

What's New in SharePoint Pages

1. New Carousel Layout in the Hero Web Part The Hero Web Part has always been a fundamental element of SharePoint pages. The new Carousel Layo...

1 year ago

Power Platform Solutions Made Simple

Introduction to Power Platform Solutions Power Platform Solutions offer many benefits, especially when moving from standalone flows and apps t...

1 year ago

Use your Bluesky post for comments on your Hugo Blog

Since Bluesky is getting really popular by people I interact with, I decided to switch my blog comments to Bluesky posts. In this blog post, I...

1 year ago

Exploring SharePoint Online's SiteAssets Library

The SiteAssets library in SharePoint Online often seems like a mystery to a lot of users I talk to, but it’s important to understand it ...

1 year ago

Step-by-Step Guide to Copy Pages between SharePoint Online

Unfortunately you can’t copy pages in SharePoint through the UI. But sometimes you may need to copy pages and their associated SiteAsset...

1 year ago

Newsletter

Get the latest Dynamics 365 and Power Platform content in your inbox

A curated digest of community blogs, product news, videos, and podcasts — delivered without the noise.

Weekly updates Unsubscribe anytime Fresh community picks
We use your email only for the newsletter and you can unsubscribe at any time.
By subscribing, you agree to the privacy policy.