i am looking for some help with livekit agent deve...
# jobs
b
i am looking for some help with livekit agent development. i am having issues playing a static text as greeting as well as i would like some SoftBargeIn instead of the agent immediately stop talking if it hears the called party speaking. this is for an outbound lead qualification agent that is working but has these and a few other small issues.
m
You can make your agent always complete their initial greeting regardless of interruptions. Have you tried to pass in allow_interruptions=False in the AgentSession function say?
Copy code
def say(
        self,
        text: str | AsyncIterable[str],
        *,
        audio: NotGivenOr[AsyncIterable[rtc.AudioFrame]] = NOT_GIVEN,
        allow_interruptions: NotGivenOr[bool] = NOT_GIVEN,
        add_to_chat_ctx: bool = True,
    )
here is the usage:
Copy code
await agent_session.say(
                    text=config.initial_greeting,
                    allow_interruptions=False
                )
This is covered in the agent documentation. If you want to hire me to fix this for you send me a DM otherwise you can ask this kind of question in #C07FY8WHGPM when its a simple programming question.