Skuid Scripts

This commit is contained in:
Norm Rasmussen
2022-12-20 17:23:23 -05:00
parent 90300533d9
commit 3f647bbae7
6 changed files with 134 additions and 34 deletions

View File

@ -1,39 +1,63 @@
# AIIM
Workflows Demo
## 10/11/2022
* The user recieving the communications is an ex-employee and that should say it all
* The user receiving the communications is an ex-employee and that should say it all
* They are okay with losing the subscription of that person
* Wants to explore workflows
* Launched their course with the password protected proctored test
* Quiz has 120 min timer, same with Proctor-U settings
* No failures is a good thing, they want everyone to pass
* Is thinking about integrating Zapier, Shopify, and Northpass. Learner's have to pay for a retake.
* Using Accredible for certificates.
* Wants to explore workflows
* Launched their course with the password protected proctored test
* Quiz has 120 min timer, same with Proctor-U settings
* No failures is a good thing, they want everyone to pass
* Is thinking about integrating Zapier, Shopify, and Northpass. Learner's have to pay for a retake.
* Using Accredible for certificates.
* Accredible: make a group, make a certificate name same as group
* It does some funny things with dates
* Heavily using Workflows in Hubspot. Connected to Unific via Shopify
* Data: Bold to Shopify, Shopify to Hubspot. Hubspot becomes the main repo for all data. How to integrate Northpass?
* Getting large customer orders that can't go through bold, they go straight to Shopify. Managing expiration/join dates in a Trello card.
* Large customers are invoiced separately, bold can't do $0.
* She is just thinking about this, no engineering hours needed yet.
* The other item she wanted to talk about:
* They just started using Services Hub
* Wants to know other client use cases
* Using typeform for reviews, but will start using services hub
* Mostly to gather feedback
* It does some funny things with dates
* Heavily using Workflows in Hubspot. Connected to Unific via Shopify
* Data: Bold to Shopify, Shopify to Hubspot. Hubspot becomes the main repo for all data. How to integrate Northpass?
* Getting large customer orders that can't go through bold, they go straight to Shopify. Managing expiration/join dates in a Trello card.
* Large customers are invoiced separately, bold can't do $0.
* She is just thinking about this, no engineering hours needed yet.
* The other item she wanted to talk about:
* They just started using Services Hub
* Wants to know other client use cases
* Using typeform for reviews, but will start using services hub
* Mostly to gather feedback
* What feature are they using Services Hub for mostly?
* Service Hub is a HUBSPOT product
* She got stuck on a workflow
* Service Hub is a HUBSPOT product
* She got stuck on a workflow
* CIP Exam, it should trigger for all learners not just a specific one
* But she is getting a trigger for "enter UID" which she doesn't want to do
* This should be for everyone.
* But she is getting a trigger for "enter UID" which she doesn't want to do
* This should be for everyone.
## 11/08/2022
### Monthly Sync with Georgina
* Setup an incredible workflow in Hubspot
* NP activation link
* Dropped into Hubspot > goes in contact field
* Wants to explore gamification and badging
* Self gratification
* Wants to mimic duolingo
* NP activation link
* Dropped into Hubspot > goes in contact field
* Wants to explore gamification and badging
* Self gratification
* Wants to mimic duolingo
## 12/20/2022
### Year End Review & 2023 Planning
Engagement is the big push.
FEAT: Amazon & AI type recommendations, Peer selling, FOMO course enrollment
More customers would be ideal, growth
Adding courses, bundling of Learning Paths
CIP is a big portion of their revenue, they want to add people and sell more CIP exams.
Better Leveraging the Hubspot integration
New President is only 2 weeks old but may have ideas
_Analytics:_
* Wishes she could jump into the person a bit more. Look at their "Journey". Self-serving with learner analytics for when they get tickets.
* More for Admins
* Pulling certain roles & attributes
* Being able to impersonate that person, or move them to complete when they are stuck. View what they see.

View File

@ -166,13 +166,13 @@ This is ONLY for the US
Melinda half day on the 23rd, then off until the 3rd.
Audio files in the platform did not look how she wanted it to look. The S3 embed is too plain
TODO: If there are no events, remove zero state error message.
TODO: Add Description of the podcast.
DONE: If there are no events, remove zero state error message.
DONE: Add Description of the podcast.
She doesn't want the S3 Bucket Audio embed anymore, but will add audio files to SCORM files and those will all be individual courses with skip overview page.
TODO: Get rid of fine tuned and change Podcasts to Professional Podcasts - categories.
DONE: Get rid of fine tuned and change Podcasts to Professional Podcasts - categories.
## 12/14/2022
## 12/19/2022
### Wednesday Sync
### Pre-Holiday Sync
adwad
TODO: Send Melinda a list of all the information Northpass stores

View File

@ -247,3 +247,5 @@ Her Ideas:
Course to test: Psychiatry Tickets Training
c147d36c-3416-49e2-b665-37342d215d9a
TODO: Add total completion percentage column to Group Reports.

View File

@ -150,4 +150,4 @@ Best method:
TODO: Zoom Webinars/ILTs and Custom Comms..
TODO: Send Event Flow to Abby
TODO: Deliver Trei Analytics.
DONE: Deliver Trei Analytics.

View File

@ -0,0 +1,74 @@
import requests
import pandas as pd
baseCsv = "/Users/normrasmussen/Downloads/Incomplete list for NP monthly communcation 12.19.22 - Users.csv"
baseUrl = "https://api.northpass.com/v2/people/"
baseUrlname = "https://api.northpass.com/v2/people?filter[name][eq]="
baseUrlemail = "https://api.northpass.com/v2/people?filter[email][eq]="
# apiKey = "JRDpCGQ7vSRiva6t5OkWDr5eJ" # G2
# apiKey = "6hUfJdAartHTHhHc0WIRZYPWe" #Walmart
apiKey = "84GO7zb7a990UJrnFJqiYcd0m" # Skuid's API
def getfromEmail(baseUrlemail, baseCsv, apiKey):
uuids = []
errors = []
emails = pd.read_csv(baseCsv, usecols=["EMAIL"])
emails = emails["EMAIL"].to_list()
for email in emails:
email = email.rstrip()
url = baseUrlemail + f"{email}"
headers = {
"accept": "*/*",
"x-api-key": apiKey,
"content-type": "application/json",
}
response = requests.get(url, headers=headers)
json = response.json()
try:
uuid = json["data"][0]["id"]
uuids.append(uuid)
except Exception as e:
# print(email)
errors.append(email)
# print(str(e))
# print(response.text)
pass
# print(uuids)
print(errors)
addtoGroup(apiKey, uuids)
def addtoGroup(apiKey, uuids):
number = 0
for x in uuids:
url = f"https://api.northpass.com/v2/people/{x}/relationships/groups"
payload = {
"data": [
{
"type": "membership-groups",
"id": "7b5e5417-bc9f-454a-89a1-347c04225e03",
}
]
}
headers = {
"accept": "application/json",
"content-type": "application/json",
"X-Api-Key": apiKey,
}
response = requests.post(url, json=payload, headers=headers)
# print(response)
try:
number += 1
pass
except Exception as e:
print(str(e))
print(response.text)
print(x)
pass
finally:
print(f"{number} people added to the group!")
if __name__ == "__main__":
getfromEmail(baseUrlemail, baseCsv, apiKey)