Custom Code specific to one agent

Hello Pickaxe and team. Is it possible to have a custom code that is applied only to one agent and only to that one? I know I could do this with a portal custom code and then filter that it just uses this URL, but if you have a few agents that require a code just for them, it would be less than ideal to do it like that.
And I know that I can create a separate deployment where I add to the custom code, but I want the custom code to apply to just one bot in the portal, but to none of the other bots in the same portal. I only use a portal. I don’t use custom deployments because that’s not the use case.

The thing is, I want to have highly specialized PDF generators and interactive maker actions that work with that particular agent only, because the content it creates is highly specialized but also highly standardized. I try to create actions that make the PDFs look professional and branded or the interactive exercise work for everything exercise type, but that doesn’t really seem to work, because LLMs simply do not have standard outputs.
There are so many different types of exercises and so some generators require custom codes that trigger custom actions only for them.
I know they can be triggered via chat, but if I trigger them via chat,

  • A) it’s not reliable, and
  • B) it takes forever.

If I trigger them by a button that I add via custom code, it’s done in 5 to 6 seconds

  • without a delay of 30 to 60 seconds,
  • without failing to trigger the action,
  • without failing to include the returned link to the chat.

So yeah, being able to add custom code to an agent would be great. I think, in theory, that should technically not be too difficult, as we can add custom code to a single page or a portal or deployment. So why not a single agent?

Hi @easydeutsch ,

Thank you for this thoughtful feature request. I have shared it with the team for consideration.

If you are open to it, we would love to learn a bit more about your implementation approach, specifically how you are passing data from the agent’s response to the custom button workflow, and how the result is then returned to the end-user.

Hello Dany, I created the buttons with WIngman so you should probably be able to see what it build and what it did in the response history of my account. :slight_smile: I can´t explain the technical/coding part of it - I have no idea :smiley:
For my understanding:
The script looks in the pickaxe code for the messages in the chat copies them and sends the content to the custom actions that run on Google Cloud and they return the link to the script which waits for it and then updates the button which now is a download button to the generated file hosted on Google Cloud.