Skip to content

[Docs]: #737

Open
Open
@Atmajjanardanan

Description

@Atmajjanardanan

Brief Description

I’m encountering an issue with my call transfer functionality using the TwilioTransferCall and TransferCallVocodeActionConfig in my telephony application, PhraseBasedActionTrigger does not seem to activate as expected, and the call transfer to the specified phone number fails to initiate.

I’m seeking guidance on the following:
• Configuration Validation: Are there any misconfigurations in the provided code snippet that leading to failure?
• Any documents to make this scalable?
• Debugging Strategies: What additional debugging steps can I take to identify the root cause of the trigger and call transfer issues?
• Best Practices?

transfer_action = TransferCallVocodeActionConfig(
    type="action_transfer_calls",
    phone_number="<rep-number>",
    action_trigger=PhraseBasedActionTrigger(
        type="action_trigger_phrase_based",
        config=PhraseBasedActionTriggerConfig(
            phrase_triggers=[
                PhraseTrigger(
                    phrase="I'm transferring you to another agent, thank you",
                    conditions=["phrase_condition_type_contains"]
                )
            ]
        )
    )
)

agent_config = ChatGPTAgentConfig(
    initial_message=BaseMessage(text=f"<my-prompt>"),
    prompt_preamble=agent_task,
    generate_responses=True,
    model_name="gpt-4",
    actions=[transfer_action]
)

telephony_server = TelephonyServer(
    base_url=BASE_URL,
    config_manager=config_manager,
    inbound_call_configs=[
        TwilioInboundCallConfig(
            url="/inbound_call",
            agent_config=agent_config,
            synthesizer_config=eleven_synthesizer_config,
            twilio_config=TwilioConfig(
                account_sid=os.environ["TWILIO_ACCOUNT_SID"],
                auth_token=os.environ["TWILIO_AUTH_TOKEN"],
            ),
        )
    ],
)

Steps to Reproduce

No response

Suggested Fix

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions