Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Comments

Close side panel

add_send_text_message#10

Merged
nikhilro merged 3 commits intoVapiAI:mainVapiAI/client-sdk-python:mainfrom
venkatram-dev:add_send_text_messagevenkatram-dev/python:add_send_text_messageCopy head branch name to clipboard
Aug 22, 2024
Merged

add_send_text_message#10
nikhilro merged 3 commits intoVapiAI:mainVapiAI/client-sdk-python:mainfrom
venkatram-dev:add_send_text_messagevenkatram-dev/python:add_send_text_messageCopy head branch name to clipboard

Conversation

@venkatram-dev
Copy link
Contributor

@venkatram-dev venkatram-dev commented Aug 22, 2024

To send text messages to the assistant aside from the audio input using the send method and passing appropriate role and content.


vapi = Vapi(api_key=key)

vapi.start(assistant_id='xxx')

time.sleep(5)

vapi.add_message('user', 'Can you explain VAPI in one sentence?')

time.sleep(15)

vapi.stop()


We can look at few results here

https://dashboard.vapi.ai/calls/e40c730f-87dc-42a1-82f0-bce53697150c

https://dashboard.vapi.ai/calls/dd35f893-99dd-4366-a2a8-23c9ac04c5c9

Here is a screenshot of the message from vapi call logs.

Screenshot 2024-08-21 at 9 38 58 PM

Copy link
Contributor

@nikhilro nikhilro left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks! mostly looks good, one comment above

vapi_python/vapi_python.py Outdated Show resolved Hide resolved
@nikhilro
Copy link
Contributor

thanks!

@nikhilro nikhilro merged commit ba16f2b into VapiAI:main Aug 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.