Official Sinch API skills for AI coding agents — SMS, Voice, Verification, Numbers, Mailgun email, and more.
71
89%
Does it follow best practices?
Impact
—
No eval scenarios have been run
Advisory
Suggest reviewing before use
← Back to Conversation API SKILL.md
Sections: Overview | Prerequisites | SMART_CONVERSATION | MESSAGE_INBOUND_SMART_CONVERSATION_REDACTION | Key Points
Smart Conversations triggers deliver AI analysis results and redacted message content when Sinch's Smart Conversations feature is enabled. Smart Conversations uses machine learning to analyze message content for sentiment, intent, PII, offensive content, and more. These triggers require Smart Conversations to be enabled on your Conversation API app.
The two Smart Conversations triggers are:
SMART_CONVERSATION — AI analysis results for messagesMESSAGE_INBOUND_SMART_CONVERSATION_REDACTION — Redacted message content (PII removed)Smart Conversations must be enabled on your Conversation API app. Contact Sinch support to enable this feature, as it's not available by default.
Delivers AI-powered analysis of message content, including sentiment, intent classification, PII detection, offensive language detection, and custom entity extraction. Analysis is performed on all inbound messages when Smart Conversations is enabled.
MESSAGE_INBOUND){
"app_id": "01H1234567...",
"accepted_time": "2024-06-15T14:25:00.456Z",
"project_id": "PROJECT123",
"smart_conversation_notification": {
"message_id": "01H9876543...",
"conversation_id": "01H5555555...",
"contact_id": "01H3333333...",
"analysis": {
"sentiment": {
"score": -0.65,
"label": "NEGATIVE",
"confidence": 0.89
},
"intent": {
"primary": "order_status_inquiry",
"confidence": 0.92,
"secondary": ["refund_request"]
},
"pii_detected": true,
"pii_entities": [
{
"type": "EMAIL",
"text": "john.doe@example.com",
"start": 45,
"end": 66
},
{
"type": "PHONE_NUMBER",
"text": "555-1234",
"start": 85,
"end": 93
}
],
"offensive_content": {
"detected": false,
"confidence": 0.95
},
"language": "en",
"categories": ["customer_support", "order_inquiry"]
}
}
}| Field | Description |
|---|---|
sentiment.score | Sentiment score from -1.0 (very negative) to +1.0 (very positive) |
sentiment.label | POSITIVE, NEGATIVE, or NEUTRAL |
sentiment.confidence | Confidence score (0.0 to 1.0) |
intent.primary | Primary intent classification |
intent.confidence | Confidence in primary intent |
intent.secondary | Array of possible secondary intents |
pii_detected | Boolean indicating if PII was found |
pii_entities | Array of detected PII items with type and location |
offensive_content.detected | Boolean indicating if offensive content detected |
language | Detected language code (ISO 639-1) |
categories | Array of message category classifications |
EMAIL — Email addressesPHONE_NUMBER — Phone numbersCREDIT_CARD — Credit card numbersSSN — Social Security NumbersPASSPORT — Passport numbersDRIVER_LICENSE — Driver's license numbersPERSON_NAME — Person namesADDRESS — Physical addressesDATE_OF_BIRTH — Dates of birthBANK_ACCOUNT — Bank account numbersDelivers a redacted version of inbound messages with PII automatically removed or masked. This trigger fires in addition to MESSAGE_INBOUND and provides a sanitized message that's safe to store or process without PII compliance concerns.
MESSAGE_INBOUND (typically 100-500ms later){
"app_id": "01H1234567...",
"accepted_time": "2024-06-15T14:25:30.789Z",
"project_id": "PROJECT123",
"message": {
"id": "01H9876543...",
"conversation_id": "01H5555555...",
"contact_id": "01H3333333...",
"channel": "WHATSAPP",
"direction": "TO_APP",
"contact_message": {
"text_message": {
"text": "Hi, my email is [EMAIL_REDACTED] and my phone is [PHONE_REDACTED]. Can you help with order #12345?"
}
},
"channel_identity": {
"channel": "WHATSAPP",
"identity": "46732001122",
"app_id": "01H1234567..."
},
"accept_time": "2024-06-15T14:25:30.789Z",
"metadata": "{\"redacted\":true,\"original_message_id\":\"01H9876543...\"}"
}
}PII is replaced with standardized tokens:
[EMAIL_REDACTED] — Email addresses[PHONE_REDACTED] — Phone numbers[CREDIT_CARD_REDACTED] — Credit card numbers[SSN_REDACTED] — Social Security Numbers[NAME_REDACTED] — Person names[ADDRESS_REDACTED] — Physical addresses[DOB_REDACTED] — Dates of birth[BANK_ACCOUNT_REDACTED] — Bank account numbersMESSAGE_INBOUND; don't rely on it for immediate responsesMESSAGE_INBOUND delivers original message; this trigger delivers redacted versionSMART_CONVERSATION for real-time routing decisionsMESSAGE_INBOUND_SMART_CONVERSATION_REDACTION for compliant data retentionskills
sinch-10dlc
references
sinch-authentication
sinch-conversation-api
sinch-elastic-sip-trunking
references
sinch-fax-api
sinch-imported-numbers-hosting-orders
references
sinch-in-app-calling
sinch-mailgun
references
sinch-mailgun-inspect
references
sinch-mailgun-optimize
references
sinch-mailgun-validate
sinch-number-lookup-api
sinch-number-order-api
sinch-numbers-api
references
sinch-porting-api
sinch-provisioning-api
sinch-sdks
sinch-verification-api