LogoLogo
  • 👋START HERE
    • Welcome!
  • â„šī¸General
    • Release Notes
      • Full Feature Base Template
      • Services
      • Rule-based Automation
        • May 2025
        • February 2025
        • January 2025
        • December 2024
        • November 2024
        • October 2024
        • September 2024
        • August 2024
        • July 2024
        • June 2024
        • May 2024
        • April 2024
        • March 2024
        • February 2024
        • January 2024
        • 2023
        • 2022
        • 2021
        • Dialog Design Update
    • Glossary of Terms
    • Authentication Methods
      • SSO (Single Sign-On)
      • Built-In User Management
    • Acceptable Use Policy
  • âš™ī¸Rule-based Automation
    • Overview
      • Account Settings
        • Profile
        • Team
        • Roles and Permissions
          • User Management
          • Project Permissions
      • Basic Concepts
        • Project Management
        • Version Management
        • Multi-Lingual Bots
          • Supported Languages
        • Managing User Interactions
          • Unexpected User Input
          • No User Input
    • Dialog Interface
      • Blocks
        • Conversation Logic
          • Start Conversation
          • Global
          • State
          • Intermediate Response
          • To Previous State
          • End Conversation
        • Subdialog
          • Reusable Subdialogs
        • Phone
          • Continue Listening
          • Call Control
        • Technical Logic
          • Service
          • Condition
          • Storage
        • Other
          • Note
      • Speech Assets
        • Intents
          • Utterances
          • Descriptions
        • Slots
          • Custom Slots
            • List Slots
            • Machine Learning Slots
            • Regex Slots
            • LLM Slots
          • Prebuilt Slots
            • DTMF Slot
        • Text Snippets
        • Dictionary
      • Variables
        • Intents
        • Slots
        • Storage
        • Text Snippets
        • Environments
        • Platform
        • Context
      • Services
        • Service Integration Guide
        • Service Development
        • Service Branches and Error Handling
        • Public Services
          • Date and Birthdate Recognition
          • Spelling Post-Processing for Phone
          • IBAN Validation
          • License Plate Validation
          • Address Search
          • Street Names per Postal Code
          • Email Service
          • SMS Service
          • API Adapter
          • Salesforce-Flow Connector
          • Opening Hours
          • Speech-to-Text Hints
          • Fuzzy Match Names
          • Delay Service
      • Debugger
        • Phone 2
        • WhatsApp
        • Textchat 2
    • Environments Interface
      • Service Keys
    • Deployments Interface
      • Creating a Release
      • Editing a Release
    • Text-to-Speech
      • Azure
      • ElevenLabs
      • OpenAI via Azure (Preview)
      • SSML
        • Audio
        • Break
        • Emphasis
        • Prosody
        • Say-as
        • Substitute
        • Paragraph and Sentence
        • Voice
    • Autocomplete
    • Parloa APIs
      • CallData Service and API
      • Conversation History API
      • Textchat V2 API
    • Phone Integrations
      • Genesys Cloud
        • Setting up the SIP Trunk
        • Sending/Receiving UUI Data
        • Creating a Script to Display UUI
      • SIP
      • Tenios
        • Setting Up an Inbound Connection
        • Setting Up an Outbound Connection
        • Transferring a Call
      • Twilio
      • Public IPs and Port Information
    • AI Integration Overview
      • Dual Intent Recognizer (DIR)
      • Dual Tone Multifrequency (DTMF) Intent
    • Analytics and Debugging
      • Understanding Conversations and Transactions
      • Managing Caller ID Data
      • Hangup Events and Triggered Analytics
      • Analytics Transactions: Data Structure and Insights
      • Dialog Analytics
      • Audit Logs
      • Parloa-hosted Analytics
    • Data Privacy
      • Anonymizing Personally Identifiable Information
    • NLU Training
      • NLU Training Best Practices
    • How To
      • Create a Scalable and Maintainable Bot Architecture
      • Implement OnError Loop Handling
      • Resolve the 'Service Unavailable' Error
    • Reference
      • Parloa Keyboard Shortcuts
      • Frequently Asked Questions (FAQ)
      • JavaScript Cheat Sheet
        • Using Regular Expressions (Regex)
  • 🧠Knowledge Skill
    • Introduction
    • Knowledge Collections
    • Knowledge Sources
    • Knowledge Skill Setup
      • Step 1 – Create a Knowledge Skill Agent
      • Step 2 – Configure a Knowledge Skill Agent
      • Step 3 – Configure a Knowledge Skill Agent
Powered by GitBook
On this page
  • Overview
  • Custom Ending Actions
  • Analytics and Webhooks

Was this helpful?

Export as PDF
  1. Rule-based Automation
  2. Analytics and Debugging

Hangup Events and Triggered Analytics

PreviousManaging Caller ID DataNextAnalytics Transactions: Data Structure and Insights

Last updated 6 months ago

Was this helpful?

Overview

The Parloa Hangup Event automatically triggers when a call ends. In the debugger, it appears as both a Request and a Response type. This feature helps monitor and troubleshoot call flows effectively. Additionally, the Hangup Event is recorded in Analytics transactions, providing valuable insights into user engagement and system performance. It does not trigger additional events by itself.

When a conversation resets, variables with a session lifetime revert to their default values (empty strings). Variables related to previous prompts are also cleared.

Custom Ending Actions

To define custom actions when a call ends:

  1. Create a custom intent named PARLOA.EndConversation.

  2. Define the required actions by specifying what should happen when the call ends, such as:

    • Making a service call.

    • Updating system status.

The Hangup Event is unique to phone-based interactions. For other platforms, such as Textchat V2, different events mark the end of a conversation.

Analytics and Webhooks

The Hangup Event is recorded as part of an Analytics transaction, regardless of who ends the call (Parloa or the caller). These records offer insights into user interactions and system performance.

To use this data effectively, configure your Analytics Webhook to recognize and process Hangup Event transactions.

Example: Analytics Hangup Event JSON

Here is an example of a Hangup Event as recorded in Analytics:

[
  {
    "transactionId": "xxx",
    "requestTimestamp": "2023-03-02T17:11:45.602Z",
    "responseTime": 12,
    "userContextId": "xxx",
    "releaseId": "xxx",
    "requesterId": "+491xxx",
    "intent": {
      "name": "PARLOA.EndConversation",
      "initialState": {
        "id": "STATE.base",
        "name": "Conversation start",
        "dialogName": "main"
      },
      "handledByState": {
        "id": "",
        "name": "",
        "dialogName": ""
      },
      "handled": "locally",
      "explicitlyHandled": false,
      "nextState": {
        "id": "STATE.base",
        "name": "Conversation start",
        "dialogName": "main"
      }
    },
    "meta": {
      "errors": {
        "occurrences": 0,
        "affectedSteps": []
      },
      "warnings": {
        "occurrences": 0,
        "affectedSteps": []
      }
    },
    "variables": [],
    "platform": "phoneV2",
    "request": {
      "callMeta": {
        "instanceId": "xxx",
        "callId": "xxx",
        "callerId": "+491xxx",
        "sessionId": "+491xxx",
        "customerId": "xxx-demo",
        "production": false,
        "isPrivacyEnabled": false
      },
      "event": "HANGUP"
    },
    "response": {
      "callControlMessages": [],
      "continueListening": false,
      "prompt": "",
      "reprompt": "",
      "callMeta": {
        "instanceId": "xxx",
        "callId": "xxx",
        "callerId": "+491xxx",
        "sessionId": "+491xxx",
        "customerId": "xxx-demo",
        "production": false,
        "isPrivacyEnabled": false
      },
      "customSTT": {
        "type": "prebuild",
        "id": "generic"
      }
    }
  }
]

Identifiable information, such as IDs and phone numbers, is masked with "xxx" for privacy.

Add the intent to the block.

Connect the intent to an block.

After a call ends, the system triggers the block to reset the conversation.

âš™ī¸
Global Intents
End Conversation
Start Conversation