Include Customer Phone Number, Call ID, and Assistant ID in Custom Action Payload

Currently, custom actions executed by the system do not receive essential contextual information such as the customer phone number, call ID, and assistant ID. This limitation prevents the backend from correctly identifying which customer or assistant is involved in the action, making it difficult to execute customer-dependent logic effectively.

Proposed Solution:
Enhance the custom action request payload by including the following fields:

  1. Customer Phone Number (customer_phone) – Allows the backend to identify the customer.

  2. Call ID (call_id) – Enables tracking and associating actions with the correct call session.

  3. Assistant ID (assistant_id) – Identifies the virtual assistant handling the interaction, ensuring the correct AI logic is applied.

Example Payload Update:

json

CopyEdit

{ "action": "custom_action_name", "parameters": { "some_parameter": "value" }, "customer_phone": "+1234567890", "call_id": "abc123-456def-789ghi", "assistant_id": "assistant-xyz-987" }

Feature Type
-

Please authenticate to join the conversation.

Upvoters
Status

Backlog

Board

💡 Feature Request

Date

About 1 year ago

Author

coolish2008

Subscribe to post

Get notified by email when there are changes.