How to Use a Skill Script to Call Integrations in Your Agent

Last updated: June 8, 2026

Skills can run custom scripts that call any of your connected integrations — letting you automate multi-step tasks that go beyond what a single prompt can do. You don't need to write the code yourself; just describe what you want to your agent and it will write and run the script for you.

What Is a Skill Script?

A skill is a set of instructions and reusable code attached to your agent. When a skill includes a script, the agent can execute it directly in its sandbox — running custom logic, looping through data, calling APIs, and working with your connected apps like Gmail, Slack, Google Sheets, and more.

Think of it as giving your agent the ability to write and run small programs on your behalf, without you ever touching the code.

When Is This Useful?

Skill scripts that call integrations are a great fit when you need to:

  • Process a list of items — e.g., read 50 rows from a Google Sheet and send a personalized Slack message for each one
  • Chain multiple apps together — e.g., pull new leads from HubSpot, look them up in LinkedIn, and draft outreach emails in Gmail
  • Apply custom filtering or logic — e.g., only notify you about Jira tickets assigned to specific people that are overdue by more than 3 days
  • Run the same task on a schedule — e.g., every morning, check your calendar and post a summary to Slack
  • Automate tedious data work — e.g., copy rows between spreadsheets, deduplicate contacts, or sync data between two tools

If you've ever thought "I wish my agent could just do all of this automatically" — a skill script is usually how you get there.

How to Get Your Agent to Write One

You don't need to know how to code. Just describe the task to your agent in plain language. Here are some example prompts you can adapt:

Reading and writing to Google Sheets:

"Write a skill script that reads all rows from my Google Sheet at [URL], filters for rows where the Status column is 'Pending', and sends me a Slack DM with a summary list."

Sending personalized messages:

"Create a skill script that loops through a list of names and emails from my Google Sheet and sends each person a personalized Gmail with the subject 'Your report is ready'."

Cross-app data sync:

"Write a script that checks my Linear board for all tickets marked Done this week and adds a row for each one to my tracking spreadsheet."

Scheduled morning briefs:

"Create a skill that pulls my Gmail unread count, my top 3 calendar events for today, and any urgent Slack mentions — then formats them into a single morning briefing message."

Combining data from multiple sources:

"Write a skill script that fetches the last 10 closed HubSpot deals, looks up the contact details for each, and builds a CSV summary I can download."

Tips for Best Results

  • Name the specific apps you want to use — "Gmail", "Google Sheets", "Slack", "Notion", etc. Your agent will use the integrations you've already connected.
  • Describe the output clearly — tell your agent what you want to happen at the end (a message, a file, a row added somewhere).
  • Start simple — ask for one integration at a time, then ask your agent to expand the script once the first part works.
  • If something goes wrong, paste the error back to your agent and it will debug and fix the script.

Related Resources