persona-core-workflow-b
Work with Persona verification types: government ID, selfie, database checks. Use when implementing specific verification checks, reviewing verification results, or building custom verification workflows. Trigger with phrases like "persona verification", "government ID check", "selfie verification", "persona database check", "verification results".
What this skill does
# Persona Core Workflow B — Verification Checks
## Overview
Work with Persona's verification types: government ID (passport, driver's license), selfie liveness detection, and database checks (SSN, watchlist). Covers retrieving verification details, interpreting check results, and handling edge cases.
## Prerequisites
- Completed `persona-core-workflow-a` (inquiry flow)
- Inquiry Template with verification checks configured
## Instructions
### Step 1: List Verifications for an Inquiry
```python
import os, requests
HEADERS = {
"Authorization": f"Bearer {os.environ['PERSONA_API_KEY']}",
"Persona-Version": "2023-01-05",
}
BASE = "https://withpersona.com/api/v1"
# Get all verifications for an inquiry
resp = requests.get(f"{BASE}/inquiries/inq_XXXXX", headers=HEADERS)
resp.raise_for_status()
inquiry = resp.json()["data"]
verifications = inquiry["relationships"]["verifications"]["data"]
for v in verifications:
v_resp = requests.get(f"{BASE}/verifications/{v['id']}", headers=HEADERS)
v_data = v_resp.json()["data"]["attributes"]
print(f" Type: {v['type']}")
print(f" Status: {v_data['status']}") # passed, failed, requires_retry
print(f" Checks: {v_data.get('checks', [])}")
```
### Step 2: Government ID Verification Results
```python
# Government ID verification includes extracted data
def get_gov_id_details(verification_id: str) -> dict:
resp = requests.get(f"{BASE}/verifications/{verification_id}", headers=HEADERS)
resp.raise_for_status()
attrs = resp.json()["data"]["attributes"]
return {
"status": attrs["status"],
"first_name": attrs.get("name-first"),
"last_name": attrs.get("name-last"),
"dob": attrs.get("birthdate"),
"id_number": attrs.get("identification-number"),
"id_class": attrs.get("id-class"), # dl, pp, id
"country": attrs.get("country-code"),
"expiry": attrs.get("expiration-date"),
"checks": {
check["name"]: check["status"]
for check in attrs.get("checks", [])
},
}
# Example checks: id_barcode_detection, id_integrity, id_selfie_comparison
```
### Step 3: Selfie Liveness Check
```python
def get_selfie_result(verification_id: str) -> dict:
resp = requests.get(f"{BASE}/verifications/{verification_id}", headers=HEADERS)
attrs = resp.json()["data"]["attributes"]
return {
"status": attrs["status"],
"center_photo_url": attrs.get("center-photo-url"),
"checks": {
check["name"]: check["status"]
for check in attrs.get("checks", [])
},
# Key checks: selfie_pose_detection, selfie_liveness_detection
}
```
### Step 4: Database Verification (SSN, Watchlist)
```python
def get_database_check(verification_id: str) -> dict:
resp = requests.get(f"{BASE}/verifications/{verification_id}", headers=HEADERS)
attrs = resp.json()["data"]["attributes"]
return {
"status": attrs["status"],
"checks": {
check["name"]: {
"status": check["status"],
"reasons": check.get("reasons", []),
}
for check in attrs.get("checks", [])
},
# Key checks: database_ssn_check, database_watchlist_check
}
```
### Step 5: Decision Logic
```python
def make_verification_decision(inquiry_id: str) -> str:
resp = requests.get(f"{BASE}/inquiries/{inquiry_id}", headers=HEADERS)
verifications = resp.json()["data"]["relationships"]["verifications"]["data"]
all_passed = True
for v in verifications:
v_resp = requests.get(f"{BASE}/verifications/{v['id']}", headers=HEADERS)
status = v_resp.json()["data"]["attributes"]["status"]
if status != "passed":
all_passed = False
print(f" FAILED: {v['type']} — {status}")
return "approved" if all_passed else "manual_review"
```
## Output
- Verification results retrieved with extracted data
- Government ID fields (name, DOB, ID number) parsed
- Selfie liveness status checked
- Database checks (SSN, watchlist) interpreted
## Error Handling
| Verification Status | Meaning | Action |
|--------------------|---------|--------|
| `passed` | All checks passed | Approve user |
| `failed` | One or more checks failed | Decline or manual review |
| `requires_retry` | Poor image quality | Ask user to retry |
| `initiated` | Check still running | Poll again |
## Resources
- [Government ID Verifications](https://docs.withpersona.com/api-reference/verifications/government-id-verifications)
- [Verification Checks](https://docs.withpersona.com/api-reference/verifications)
## Next Steps
- Handle events via webhooks: `persona-webhooks-events`
- Debug verification issues: `persona-common-errors`
Related in General
modeling-omnistudio-epc-catalog
IncludedSalesforce Industries CME EPC product-modeling skill for Product2-based catalog creation. Use when creating EPC products, configuring product attributes, building offer bundles with Product Child Items, or reviewing EPC DataPack JSON metadata for product catalog changes. TRIGGER when: user creates or updates Product2 EPC records, AttributeAssignment payloads, AttributeMetadata/AttributeDefaultValues, Offer bundles, or ProductChildItem relationships. DO NOT TRIGGER when: designing OmniScripts/FlexCards/Integration Procedures (use building-omnistudio-omniscript, building-omnistudio-flexcard, or building-omnistudio-integration-procedure), implementing Apex business logic (use generating-apex), or troubleshooting deployment pipelines (use deploying-metadata).
relationship-science-coach
IncludedUse this skill for direct, practical adult relationship coaching: couples conflict, repair, trust, marriage, dating, flirting, attachment patterns, emotional connection, sex, desire differences, eroticism, kink negotiation, affection, love languages, breakups, and long-term passion. Draw on Gottman, EFT and Hold Me Tight, attachment science, modern sex research, Perel, Nagoski, Kerner, Schnarch, Love and Stosny, and flexible love-language tools. Be concrete and low-hedge. Redirect only for imminent danger, abuse, coercive control, minors, non-consent, self-harm, stalking, or medical/legal/psychiatric decisions.
building-sf-integrations
IncludedSalesforce integration architecture and runtime plumbing with 120-point scoring. Use this skill to set up Named Credentials, External Credentials, External Services, REST/SOAP callout patterns, Platform Events, and Change Data Capture. TRIGGER when: user sets up Named Credentials, External Services, REST/SOAP callouts, Platform Events, CDC, or touches .namedCredential-meta.xml files. DO NOT TRIGGER when: Connected App/OAuth config (use configuring-connected-apps), Apex-only logic (use generating-apex), or data import/export (use handling-sf-data).
venue-templates
IncludedAccess comprehensive LaTeX templates, formatting requirements, and submission guidelines for major scientific publication venues (Nature, Science, PLOS, IEEE, ACM), academic conferences (NeurIPS, ICML, CVPR, CHI), research posters, and grant proposals (NSF, NIH, DOE, DARPA). This skill should be used when preparing manuscripts for journal submission, conference papers, research posters, or grant proposals and need venue-specific formatting requirements and templates.
let-fate-decide
IncludedDraws the 12 Houses of the Zodiac Tarot spread to inject entropy into planning when prompts are vague, ambiguous, or casually delegated. Interprets the spread to guide next steps. Use when the user says 'let fate decide', 'YOLO', 'whatever', 'idk', or other nonchalant phrases, makes Yu-Gi-Oh references, or when you are about to arbitrarily pick between multiple reasonable approaches. Prefer over ask-questions-if-underspecified when the user's tone is casual or playful rather than precision-seeking.
net-ops
IncludedCross-platform network troubleshooting (Windows, macOS, Linux) via local or remote shell. Use for: DNS broken, can't resolve hostnames, nslookup/dig works but apps fail, NRPT, WFP, scutil, /etc/resolver, systemd-resolved, /etc/resolv.conf, NetworkManager, VPN DNS leak residue (ProtonVPN/Mullvad/WireGuard/AnyConnect), AV/firewall blocking DNS or DoH, Tailscale DNS interaction, intermittent connectivity, remote diagnostics over SSH.