Skip to content

RealtimeAgent: how to get the model to greet the caller to start the conversation? #1265

@apiltamang

Description

@apiltamang

Please read this first

  • Have you read the docs?Agents SDK docs
  • Have you searched for related issues? Others may have had similar requests

Question

Back when I was using the native RealtimeAPI, I could send a message like so:

        self.ws.send(json.dumps({
            "type": "conversation.item.create",
            "item": {
                "type": "message",
                "role": "user",
                "content": [
                    {
                        "type": "input_text",
                        "text": "Greet the end user letting him or her know you are a virtual assistant ABC"
                    }
                ]
            }
        }))
        self.ws.send(json.dumps({
                "type": "response.create"
        }))

so the end user knows that the agent is live and ready to answer. Right now looking at the Agents SDK, I am not sure I can find an equivalent way to do so. I maybe missing something obvious, but would appreciate a quick pointer.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions