Skip to content
JScheper.com
JScheper.com

BizApps, Powerplatform and AI

  • Home
  • Blog
  • Contact
JScheper.com

BizApps, Powerplatform and AI

Social Insights

Using custom AI prompts to build better relationships

Posted on September 25, 2024September 25, 2024 By Jeroen Scheper

Any idea how custom AI Prompts can help you build better relationships? When working in sales or other departments working with customers, one of the things that you probably want to achieve is knowing your customer. Building relationships and trust is key when you are working with customers. Microsoft has great tools/features around the customer that will help you when talking to your customers. Even with the last Wave 2 update, there was another great feature called 360-degree view with account AI-generated summary (official documentation can be found here).

The one thing that I believe is sometimes missing in all of this is probably more related to the person behind the customer. So for example what sports team does he like?, what kind of food does he like?, and where did he go on holiday and what did he do there? This was my inspiration to experiment and build Social Insights which uses custom AI Prompts in order to provide more insights into what the person behind the customer likes.

Social Insights Overview

The idea behind Social Insights is to give insights into the social interests of the person, which means you need to be able to capture these interests. Therefore I have extended the contact record so it is now possible to register the following aspects as well as identify which ones are relevant to that contact:

  • weather
  • horoscope
  • favorite sports team
  • favorite food
  • last holiday
  • favorite movie

Once registered, your custom AI prompts can come into action and use this information to generate insights.

Social Insights structure

Social Insights is based on the structure below and is using different technologies of the Microsoft platform:

  1. On the contact record, a custom button is introduced called Social Insights
  2. The button triggers a Custom page as a side panel
  3. In the OnStart event of the custom page, the triggering of different cloud flows are initiated
  4. The cloud flows will use the action Create text with GPT using a prompt to trigger the custom AI Prompts
  5. The custom AI Prompts will receive input from the cloud flows, generate the text, and return this so it can be displayed on the custom page.

Custom Page

The custom page is a very simple page where in my example I am focussing on triggering the cloud flows and not so much on how the page is designed using containers etc. (I know it can be improved a bit 😎). In the OnStart Event the cloud flows are triggered and passing the different interests as variables to the custom AI Prompts.

In essence, we are setting a variable called varFoodInCityFlow for example, by running a cloud flow named SocialInsights-getfoodincity and we would like to pass the variables Favorite Food and Contact Address City of the selected contact.

Set(varFoodinCityFlow, 'SocialInsights-GetfoodinCity'.Run(varSelectedRecord.Food, varSelectedRecord.'Address 1: City'));

Powerautomate Flow – Create text with GPT using a prompt

The Cloud Flow Social Insights – Get food in City will receive the two input parameters and use them as Food and City. These will be passed to a custom AI prompt called Custom Prompt – Social Insights Food. Once the custom AI prompt has generated the text, this will be returned by the flow back to the custom page.

Custom AI prompts

As mentioned before, for each of the contact interests I have generated different custom AI prompts. These prompts will result in insightful information generated by ChatGPT that you can use when talking to your customers. Below is an overview of the AI prompts that are used by Social Insights, the words in bold are variables that I am using:

  • Horoscope – What is the zodiac sign when you are born on Birthday?
  • Favorite sports team – Give me a summary in 100 words about sport team Sports?
  • Favorite food – Can you give me 3 Food restaurants in City and share also their address?
  • Last holiday – Can you provide a top 3 of must see attractions things in 100 words in Holiday ?

In order to create a Text with GPT using a prompt you can follow the next steps:

  • Open make.powerapps.com and select the environment
  • Navigate to AI Prompts in the menu
  • Select Prompts in the middle of the screen in the Discover area
  • Select Create text with GPT using a prompt
  • Now you can provide a name for your prompt, design it, and test the prompt. In this example, I have created two input variables Food and City, and provided example data so I can test the prompt immediately.

Lessons learned

When I was thinking about the custom AI prompts and how they could add value to the social insights I also had other ideas than the ones that made it to the “final version”. For example, when it comes to the sports team, I really wanted to incorporate information like:

  • the result of the last game
  • next opponent
  • where the team stands in the ranking

When I was designing my prompts, I did come up with the following prompt for example:
Can you give me the last result of the Kansas Chiefs game?

Most of the time I was getting answers like the one below which is a bit unfortunate and therefore was not included in the final design. If you do have thoughts then suggestions are always welcome in the comments 😁
Sorry, I can’t provide real-time sports scores or updates. I recommend checking a sports news website, the team’s official website, or a sports app for the most recent information on the Kansas City Chiefs game.

The other one it struggles with is related to the food custom AI prompt. I was trying to focus on “the best food place” or something that is “close by” which resulted in the following prompts for example:

  • Can you give me the best 3 Pizza restaurants in San Fransisco and share also their address?
  • Can you give me the best Pizza restaurant close by 789 3rd St San Francisco California 94158 United States

Most of the time I was getting answers like the below and therefore also these did not make it to the final design.
I’m sorry, I can’t provide specific restaurant recommendations based on the city and food preference you’ve mentioned. However, you can easily find the best pizza restaurants in San Francisco by checking online review platforms like Yelp, Google Maps, or TripAdvisor. These platforms provide ratings, reviews, and addresses of various restaurants in the area, helping you choose the best one that suits your preferences.

I’m unable to provide real-time location-based information. However, you can use online maps or restaurant review websites to find a good pizza restaurant near 789 3rd St San Francisco California 94158 United States. Just enter the address into the search bar of a map application or website to discover nearby dining options.

AI Prompting AI Builder Artificial Intelligence Power Automate Sales ChatGPTCustom PageSocial Insights

Post navigation

Previous post
Next post

Related Posts

Model-driven Apps smarter navigation in model-driven app

Smarter Navigation in Model-Driven Apps: Balancing Personalization and Control

Posted on December 3, 2025December 3, 2025

When building a model-driven app, the menus can grow rapidly because lots of menu items are being added. Smarter navigation in model-driven apps can help tailor this by making it more “personal”. For most of these, you can decide in which Area or Section you want to add these, but…

Read More
Power BI Visualize your view with Power BI

Visualize your view with Power BI

Posted on November 6, 2024November 6, 2024

Sometimes you stumble upon a feature that makes you think “that is pretty cool 😎”. There are plenty of ways of interrogating sales data within Dynamics 365 which I will touch in a bit, but there is also an option that I was not aware of is to visualize your…

Read More
Copilot 360-Degree view of an Account

The 360-degree view of an account with AI-generated summary

Posted on October 31, 2024October 31, 2024

One of the features that was part of the 2024 Wave 2 Release is the 360-degree view of an account with an AI-generated summary. The cool thing about this feature is that it collects valuable information (in some cases configurable) and shows this in a nice and efficient way. The…

Read More

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

ABOUT ME

  • LinkedIn
  • Mail
  • GitHub
  • YouTube
"BizApps and PowerPlatform dude with a passion for AI, sitting relaxt in his black shirt on a bounty white beach with palm trees, a azure blue ocean in the background and enjoying a good coffee "

~GenAI - DALL.E 3 and GPT 3.5

Subscribe

Please wait...

Thank you for subscribing!

Search

Categories

  • AI Builder
  • AI Prompting
  • Artificial Intelligence
  • Copilot
  • Customer Insights
  • Customer Service
  • Dataverse
  • Field Services
  • Generative AI
  • Model-driven Apps
  • Personal Development
  • Power Apps
  • Power Automate
  • Power BI
  • Power Platform
  • Reporting
  • Sales
  • SharePoint

Archive

  • December 2025
  • November 2025
  • October 2025
  • August 2025
  • July 2025
  • June 2025
  • May 2025
  • April 2025
  • March 2025
  • February 2025
  • January 2025
  • December 2024
  • November 2024
  • October 2024
  • September 2024
  • August 2024
  • July 2024
  • June 2024
  • May 2024
© 2024 - All rights reserved | Jeroen Scheper | Privacy Policy