New Interact with Agents via text work with transi...
# support
a
Hey @User does the new interaction with agents via text work with transient agents? Any docs on that? Thanks!! Keep up the great work! Thanks to @Shubham Bajaj and @Sahil for helping a ton!
s
it does work.
Copy code
json
curl --location 'https://api.vapi.ai/chat' \
--header 'Authorization: Bearer private-key' \
--data '{
    "messages": [
        {
            "role": "assistant",
            "content": "Thank you for calling XYZ. How may I help you today?"
        },
        {
            "content": "Hey Hi, actually I had a mole in my bathroom",
            "role": "user"
        }
    ],
    "assistantId": "e5f78c81-69d0-44fc-a59c-21076d3649d1"
}
Instead of assistantID, use the assistant parameter and pass the complete assistant configuration.
a
you rock man! thanks @Sahil