Skip to content

Commit c332d46

Browse files
committed
Added import prompts functionality
1 parent 234dba4 commit c332d46

File tree

6 files changed

+54
-2
lines changed

6 files changed

+54
-2
lines changed

Documentation/Architecture.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,10 @@ This flow is triggered in the Power App when it is opened. It uses the Viva Enga
9898

9999
This flow is required because the native Viva Engage connector does not return the M365 group id for the community. The group id is needed to add the service account to the group through the app when sending a prompt.
100100

101+
## Parse Prompt CSV
102+
103+
This flow is triggered from the Power App when the user clicks the **Upload** button. It parses the content of the csv file and returns it as JSON.
104+
101105
## Data Source
102106

103107
As detailed in the [Overview](Overview.md) documentation, there are 3 SharePoint lists used in prompt pulse. Please see the details of each list below and what each column is used for:
89.6 KB
Loading

Documentation/Overview.md

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
Prompt Pulse consists of the following components:
44

55
- Power App
6-
- 5 x Power Automate flows.
6+
- 6 x Power Automate flows.
77
- 3 x SharePoint lists for data storage
88

99
For more details on what each of these does please check out the [Architecture](Architecture.md) documentation.
@@ -75,6 +75,26 @@ The **Send Now** option sends the prompt straight away and removes it from the s
7575

7676
<img src="https://github.com/pnp/prompt-pulse/blob/main/Documentation/Images/prompt-pulse-scheduledialog-screenshot.png?raw=true" alt="Prompt Pulse Schedule Prompt Dialog Screenshot"><br/>
7777

78+
79+
### Importing
80+
81+
Prompts can be imported into Prompt Pulse in bulk, enabling you to easily schedule and send prompts right away, encouraging the use of Copilot from the get go.
82+
83+
A csv file has been provided [Prompts.csv](.\prompts.csv) with pre built prompts for you to import. Feel free to edit the csv and add/remove as many prompts as you like (you will also be able to remove when importing). The pre built csv will be update periodically with new prompts so please keep an eye out for changes.
84+
85+
To import prompts, follow the steps below:
86+
87+
1. Navigate to the import screen by clicking the **Import Prompts** tab.
88+
2. Use the attachment control to upload the csv file (only csv files are supported AND the csv file must be in the same format as the provided sample).
89+
3. Click **Upload**.
90+
4. The table will update to show all the prompts from the csv.
91+
5. For each row/prompt, choose whether to schedule or send the prompt (**send** will send the prompt straight away when imported). Also choose the locations to share the prompt to.
92+
6. Once ready, click **Import**, this will import the prompts into the SharePoint list and send/schedule them as per your selections.
93+
94+
**To delete prompts that you do not wish to import, use the trash icon.**
95+
96+
<img src="https://github.com/pnp/prompt-pulse/blob/main/Documentation/Images/prompt-pulse-import-screenshot.png?raw=true" alt="Prompt Pulse Import Prompts Screenshot"><br/>
97+
7898
### Tips
7999

80100
- Use a dedicated service account/M365 user when deploying Prompt Pulse (adaptive cards will be sent from this account).
@@ -95,13 +115,14 @@ Bear the above in mind when using Prompt Pulse, in a future iteration we will lo
95115

96116
## Power Automate Flows
97117

98-
There are 5 flows that are part of the Prompt Pulse solution, these are listed below along with a brief description of what these do, for more details please view the [Architecture](Architecture.md) documentation.
118+
There are 6 flows that are part of the Prompt Pulse solution, these are listed below along with a brief description of what these do, for more details please view the [Architecture](Architecture.md) documentation.
99119

100120
- Send Prompt: This flow executes when a list item is created or modified in the 'Prompts' list and sends the prompt to the specified location using adaptive cards or in the case of Viva Engage, a message.
101121
- Send Scheduled Prompt: This flow runs on a recurrent schedule (5 minutes by default) and is responsible for checking for scheduled prompts in the list and sending these.
102122
- Like Prompt: This flow runs when a user clicks the **Like Prompt** button in the adaptive cards and adds the prompt to the users' liked prompts.
103123
- Get Group Chats: This flow is used in the Power App and retrieves a list of group chats that the current user is a member of where the Prompt Pulse account is a member of the chat.
104124
- Get Engage Communities: This flow is used in the Power App and returns a list of Viva Engage Communities that the current user is a member of.
125+
- Parse Prompt CSV: This flow is used in the Power App and parses the content of the uploaded csv file and returns it in JSON format.
105126

106127
## Data Storage
107128

1.85 MB
Binary file not shown.

Prompts.csv

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
PromptTitle,Prompt
2+
Superhero,"Using the information, you have about me, my writing and my work, create a Superhero with the superpowers you think I possess. Help me define my personal brand. Reference my work, emails, chats, etc. to help shape a personal brand fitting to me. This personal brand should be in the form of an elevator pitch about what I do and reflect my characteristics."
3+
7 day summary,"Summarise the last 7 days into bullet points of actions where I have been mentioned. Refer to any emails, chats and meeting transcripts that I missed due to being on holiday. List the urgent actions first and who asked the question."
4+
Summarise my emails,"From my emails over the past week, create a table of actions, including whose action it is, the person that assigned it and when it is due. I need this to have a good structure to organize my day. Be concise.​"
5+
Meeting minutes,Using the format in /template.doc and the transcript in /meeting put together meeting minutes from this meeting
6+
Meeting prep,"Help me prepare for today's meetings with the title, participants, and times. "
7+
Email response,Identify and list all the emails and chats where I have not responded or received a response.
8+
Personal brand,Look at the emails and Teams meetings that I have sent in the last 6 months. Use these messages to distil a personal brand voice document that I can use to inform copilot of my personal voice and style.
9+
Review my calendar,"Review my calendar for today and provide a table of all meetings, including descriptions, agendas, and participants, organized hour by hour. Include a buffer time for preparation before each meeting."
10+
Eisenhower matrix,"Based on my emails and Teams chat channels of the last 36 hours, organise my tasks along the Eisenhower matrix for the coming 15 days."
11+
Explain a topic,Explain [topic] in simple terms. Explain to me as if I’m a beginner.
12+
Set me up for the day,"Scan my meetings, emails and chats to let me know what meetings I have and who with and what preparation I have to do. Let me know what I missed in the last 24 hours. What other tasks do I have to work on? Produce a structured list which lets me prioritise what I have to work on today. Include some concise context for each."
13+
Prepare for Monday,"List my meetings, tasks and activities on my calendar that I am participating in on this coming Monday in a table. In a second column, recommend any specific actions I should take to prepare for those meetings and activities; dig into the meeting details, and where the meeting includes attached documents or links, list their names and provide their links in a third column."
14+
Kickstart the week,"You are my AI assistant, optimized for my daily routine. Please assist me in starting my day effectively. List action items in a dedicated table. Please have the columns in the following order. Topic, Follow ups and action items."
15+
Analyze emails from my leaders,"I'd like for you to act as my executive assistant. Can you analyze my inbox and find any emails from my manager, or their manager, that require my response or contain any action items."
16+
List technical interviews,"List all the candidates for which I took the interview in a tabular format with date of interview, candidate name and position. kindly refer to the last 6 months emails from Outlook to get the candidate's name."
17+
Locate my meeting mentions,Find conversations where my name was mentioned yesterday where I have not since replied.
18+
Meeting minutes,"What was this meeting about? What are the goals and topics from the meeting? Format each section with a bolded heading, a bulleted list, and bolded names.What were the key points discussed?Summarize the key discussion points and any action items. Recap and categorize all tips that were considered. Format into a table."""
19+
Start the Day,"Help me start my day: Act as if you are my personal admin. I'd like for you to create a list showing anywhere I was mentioned but have not yet responded organized by email, Teams chat, and Teams channels in the last 24 hours including a short summary of each. Next, using that information generate a list that prioritizes my top 3 action items for today."
20+
Wrap Up the Day,"Help me wrap up my day: Act as if you are my personal admin. I'd like for you to create a list showing anywhere I was mentioned but have not yet responded organized by email, Teams chat, and Temas channels in the last 10 hours including a short summary of each. Next, using that information generate a list that prioritizes my top 3 action items for today."
21+
Explain,Summarize the article in a Non Academic and Non Technical Style.
22+
OneNote structure,"Please add structure to these notes, make all names bold and add a table of actions at the end,"
23+
Rewrite,Rewrite this for clarity and brevity.
24+
List to Table for Dyslexia,Put this in a table for me.

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ Team members can establish these new routines by actively exchanging and embraci
1414
Utilizing Power Automate, these prompts are automatically distributed to Teams chats/channels or Viva Engage communities based on scheduled timings for regular and reliable updates.
1515

1616
'Prompt Pulse' features a user-friendly interface designed with Power Apps, enabling admins to set schedules, designate specific audiences, and track the distribution of prompts.
17+
18+
Additionally, Prompt Pulse is supplied with pre built prompts [Prompts.csv](Prompts.csv) that you can import straight away.
1719

1820
Deployment is straightforward and quick, not necessitating any premium connectors nor relying on Dataverse.
1921

@@ -38,6 +40,7 @@ Prompt Pulse provides the following capabilities:
3840
- Adaptive card notifications for shared prompts.
3941
- A library of prompts which are added to when prompts are shared.
4042
- Ability to schedule prompts in advance to automatically send at a specific date/time.
43+
- Bulk import prompts from a csv file.
4144
- Users can like prompts to curate their own personal collection of prompts they find useful.
4245
- Fully mobile responsive Power App so users can share and view prompts on the move.
4346

0 commit comments

Comments
 (0)