Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Docs]: #737

Open
Atmajjanardanan opened this issue Dec 27, 2024 · 0 comments
Open

[Docs]: #737

Atmajjanardanan opened this issue Dec 27, 2024 · 0 comments
Labels
documentation Improvements or additions to documentation

Comments

@Atmajjanardanan
Copy link

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

@Atmajjanardanan Atmajjanardanan added the documentation Improvements or additions to documentation label Dec 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

1 participant