Web Snippest Dynamic Assistant
# support
c
So this is kind of a problem... I am using dynamic assistants that are created dynamically and this is done through the phone number. When using the web snippet it takes an assistant ID, well there is no assistant ID when you doing it dynamically. It just calls the server-url. So then I made an assistant, I then added my server URL to it but its still uses the prompt of the static assistant that I created. I was hoping it would pull it dynamically. Is there no other way? Or would i have to build the whole assistant client side in JS.
v
@chia5966 I understand your concern. When you create an assistant dynamically and set a server URL, the assistant should indeed pull the prompts dynamically from your server. If you've set the server URL for your assistant and it's still using the static prompts, there might be a configuration issue. Here's what you can check to ensure it works correctly: 1. **Server URL Configuration**: Verify that the server URL is correctly set in the assistant's settings. This can be done either through the dashboard under the "Advanced" tab or via the API during assistant creation or update. 2. **Server Response**: Ensure that your server is correctly handling requests from the assistant and returning dynamic prompts as expected. The server should be set up to receive the context and return appropriate responses. 3. **Assistant Update**: If you've updated the server URL after the assistant was created, make sure that the changes have been saved and that the assistant is indeed using the new configuration. 4. **Web Snippet**: When using the web snippet, ensure that it's configured to communicate with the dynamic assistant you've set up. It should not be hardcoded to use a specific assistant ID if you're relying on dynamic server URL fetching. If after checking these points the issue persists, you might need to look into building a client-side solution that dynamically creates the assistant and sets the server URL as needed. However, this should not be necessary if the server URL is correctly configured and your server is responding with the dynamic prompts. If you need further assistance with this, please let me know, and I can help guide you through the process or provide more detailed instructions.
You can continue this conversation by mentioning me in the message.
s
if understood correctly at last you created an assistant to make the call over the web and using that your trying to change the assistant?
c
No the problem is I use dynamic assistants so basically i give a phone number a server-url and everything works great
so i wanted to create the web snippet but you have to get it an assistant id well the dynamic ones do not have assistant id's as they are just tied to the phone number
so i created a static assistant so I would have an assistant id and then I assigned a server url to the assistant directly (as oppose to the phone number) hoping when they hit the web client it would call there server url and pull the whole assistant from it... but instead it uses the prompt of the static assistant .. so i don't really know what good is assigning a server-url to the assistant directly ... maybe that makes more sense ?
s
why don't user assistant overrides with assistant ids
No response closing the ticket.
5 Views