Dynamic Shell Toolkit with Installable Skillsets
An AI agent that demonstrates dynamically installing skillsets as executable shell commands, turning ChatBotKit abilities into a powerful command-line interface that extends on demand. Features AI image generation, Gmail integration, and CRM automation with Instantly.
The Dynamic Shell Toolkit blueprint showcases a powerful architectural pattern: installing skillsets as executable commands in a shell environment. This transforms abstract AI abilities into tangible command-line tools that can be invoked, piped, and composed like traditional Unix utilities.
The core innovation here is the shell/skillset/install[by-id] ability,
which takes any skillset and makes it available as a shell command. When
you install a skillset into the shell environment, its abilities become
subcommands of that skillset's command. For example, installing an "email-tools"
skillset creates an email-tools command, and its abilities like "search"
and "send" become email-tools search and email-tools send.
This architecture demonstrates several powerful concepts. First, it shows how skillsets are not just collections of abilities — they're composable units of functionality that can be loaded and unloaded dynamically. Second, it bridges the gap between conversational AI and traditional scripting, allowing agents to leverage both paradigms. An agent can chat naturally about what needs to be done, then drop into shell mode to execute complex command pipelines with precise control.
The blueprint includes three specialized skillsets that showcase real-world
integrations: Image Tools for AI-powered image generation and modification
using GPT Image 1.5, Email Tools for Gmail integration with message search,
send, and draft capabilities, and CRM Tools for Instantly.ai lead and
campaign management. The agent discovers these skillsets at runtime using
the blueprint/resource/list ability, installs the ones it needs using
shell/skillset/install[by-id], and then executes shell commands that
invoke them.
Practical use cases include building marketing automation pipelines where agents generate personalized images and add leads to email campaigns, creating sales assistants that search Gmail for prospect conversations and sync with CRM, constructing content workflows that generate images and distribute via email, and building self-extending automation systems that discover and install new capabilities as needed.
The shell environment is sandboxed and isolated per agent instance, making this pattern safe for multi-tenant scenarios. Each agent gets its own workspace where installed commands persist for the session but don't leak to other users. The timeout parameter (max 5 minutes) prevents runaway processes, and the space parameter ensures file operations are contained within the agent's designated storage.
To extend this blueprint, add more specialized skillsets for different domains (database operations, cloud API interactions, monitoring tools), implement a command registry that tracks installed tools and their versions, create wrapper scripts that combine multiple skillset commands into higher-level workflows, or build a package manager concept where skillsets declare dependencies on other skillsets and auto-install them.
This pattern is particularly valuable for marketing automation, sales workflows, content creation pipelines, and any scenario where structured command execution with real integrations is preferable to purely conversational interaction. It combines the flexibility of AI with the precision and composability of shell scripting.
Backstory
Common information about the bot's experience, skills and personality. For more information, see the Backstory documentation.
Skillset
This example uses a dedicated Skillset. Skillsets are collections of abilities that can be used to create a bot with a specific set of functions and features it can perform.
List Available Skillsets
Discover all installable skillsets (toolkits) available in this blueprintInstall Skillset as Shell Command
Install a skillset into the shell environment as an executable commandExecute Shell Command
Execute shell commands including installed skillset commandsRead File
Read files from the shell workspaceWrite File
Write files to the shell workspaceSearch Gmail
Search for messages in Gmail using query syntaxSend Email
Send an email message via GmailCreate Draft
Create a draft email in GmailGenerate Image
Generate an image using GPT Image 1.5 modelModify Image
Modify an existing image using GPT Image 1.5 modelList Campaigns
List all Instantly.ai campaignsAdd Lead to Campaign
Add a lead to an Instantly.ai campaignCampaign Summary
Get analytics summary for an Instantly.ai campaign
Secrets
This example uses Secrets to store sensitive information such as API keys, passwords, and other credentials.
Google Mail
OAuth connection to Gmail for email operationsInstantly API Key
API key for Instantly.ai CRM operations
Terraform Code
This blueprint can be deployed using Terraform, enabling infrastructure-as-code management of your ChatBotKit resources. Use the code below to recreate this example in your own environment.
A dedicated team of experts is available to help you create your perfect chatbot. Reach out via or chat for more information.