Automatically Update Squad Backend After Agent Cha...
# support
g
Hello everyone, I'm encountering an issue and could use some advice. When I make changes to an agent that is part of a squad, the agent itself gets updated in the backend, but the squad backend still shows the old information. For convenience, I'm editing the agents directly in the dashboard. However, updating the squad requires a separate patch request, which is a bit cumbersome. Is there a way to automatically update the squads whenever I make a change to an agent? Any useful tips would be greatly appreciated. Thanks!
v
@gtakamel99 Hello! Currently, there isn't an automated process within the dashboard that updates the squads whenever an agent is changed. You would typically need to manually send a patch request to update the squad with the new agent information. However, as a developer, you could potentially automate this process by creating a script or a small application that listens for changes in an agent and then triggers a patch request to update the relevant squad. This would require some programming knowledge and the use of webhooks or polling to detect changes. If you're interested in setting up such an automation, I can guide you through the necessary steps or provide you with more detailed information on how to proceed. Would you like to explore this option further?
You can continue this conversation by mentioning me in the message.
Got it. Tagging @User for additional help.
g
Maybe some tips?
s
Hey as your using persistant agent then it will get automatically updated, can you share your squad config please.
I created the squad with this post request: { "id": "642cbb17-7128-40fe-80c3-d2827b726be0", "orgId": "f178dde7-7541-4b1a-9080-923bb8c20737", "createdAt": "2024-07-02T14:21:39.281Z", "updatedAt": "2024-07-02T14:21:39.281Z", "members": [ { "assistantId": "7150323e-888f-4d50-b099-8bc797d98785" }, { "assistantId": "773588be-2c34-44e7-b624-b3e7ccb571b6" }, { "assistantId": "aad20f73-2122-432b-939f-ddf4b0d9c534" }, { "assistantId": "173db46a-4ffc-4984-8ef8-7617bd56da2c" }, { "assistantId": "0588789b-0a16-4127-972f-5275a0e4a1fd" } ], "name": "Entlastungsdienst Bern" }
s
Hey squad created using api, can only be updated using api.
g
Alrigt, thanks so when using the dashboard to create the bots it should get automatically updated?
Hey i tried it now with creating a squat on the dasboard and, then updating a single agent, and then checking with the get squats request if its updated but it hasnt updated. assistant id i updatet (changed first message): 7150323e-888f-4d50-b099-8bc797d98785 Squad id: 9d1924ae-6488-4b75-bc0e-ca3fe29aaff3
s
FYI: This squad config won't transfer to other agent because there is not destination assoicated with the first agent. I assume your aware of this.
DM me, will resolve it over the call.