Appearance
Quick Start
Get started with Actify in 5 minutes. This guide shows you how to create your first automated workflow using your AI assistant.
Prerequisites
Make sure you've completed these steps:
- ✅ Signed up and got your API token
- ✅ Configured your AI client
- ✅ Restarted your AI client (Claude Desktop, VS Code, or Cursor)
Tutorial: Your First Code Execution
Step 1: Hello World
Let's verify Actify is working. Simply ask your AI:
Execute this code: console.log('Hello from Actify!')What happens:
- Your AI sends the request to Actify
- Code runs securely in isolation
- You'll see the output:
Hello from Actify!
✅ Success! You've just run your first workflow with Actify.
Step 2: Return Data
Now let's get structured data back from your code. Ask:
Run this JavaScript code and show me the result:
const result = {
message: 'Success',
timestamp: new Date().toISOString(),
random: Math.random()
};
return result;What you'll see: Your AI will receive and display the returned object with your message, timestamp, and a random number.
Step 3: Use NPM Packages
Actify automatically installs NPM packages you need. Try this:
Use axios to fetch information about the octocat user from GitHub's API
and show me their name, bio, and public repo countWhat happens:
- Actify automatically installs
axios - Fetches data from GitHub's API
- Returns the requested information
Expected result:
json
{
"name": "The Octocat",
"bio": "How people build software",
"public_repos": 8
}Step 4: Check Your Credits
See how many credits you have left:
How many Actify credits do I have?What you'll see:
- Current credit balance
- Credits used this month
- Usage history
Step 5: View Execution History
See all your recent code executions:
Show me my recent Actify executionsWhat you'll see:
- List of recent executions
- Status (completed, failed, running)
- Timestamp for each execution
- Credits used per execution
Next: Try These Common Use Cases
Data Processing
Process this JSON array and return only items with price > 50:
[
{ "name": "Widget A", "price": 25 },
{ "name": "Widget B", "price": 75 },
{ "name": "Widget C", "price": 150 }
]API Integration
Fetch the current weather for New York from wttr.in API
and return just the temperature and conditionsScheduled Tasks
Schedule a job to run every hour that logs the current time
Name it "Hourly Time Logger"Using Secrets
First, store an API key:
Create an Actify secret named GITHUB_TOKEN with value ghp_your_token_hereThen use it in your code:
Execute code that uses my GITHUB_TOKEN secret from the environment
to fetch my GitHub user profileFile Operations
Create a JSON file at /tmp/data.json with sample user data,
then read it back and parse itUnderstanding What Happens
When you ask your AI to execute code with Actify:
- Your AI calls Actify - Through the MCP protocol
- Code is packaged - Into a secure container with Node.js
- Runs in Kubernetes - Isolated sandbox environment
- NPM packages installed - If your code uses
require()orimport - Results returned - Output, return values, and logs sent back
- Credits deducted - Based on execution time and resources
Typical execution time: 2-5 seconds for simple code, up to 5 minutes for complex tasks.
Common Patterns & Tips
💡 Return Structured Data
Always return objects for better AI processing:
Execute code that fetches GitHub stars for nodejs/node repository
and returns: { name, stars, language }💡 Handle Errors Gracefully
Include error handling in your prompts:
Try to fetch data from this API, and if it fails,
return an error object with the error message💡 Use Descriptive Variable Names
This helps your AI understand the results:
Calculate the average price and total quantity from this product data
Return as { averagePrice, totalQuantity, productCount }💡 Specify Timeouts for Long Tasks
For API calls or heavy processing:
Execute this code with a 60 second timeout:
[your code here]Troubleshooting
Code Takes Too Long
Symptom: Execution times out
Solution: Ask for a longer timeout:
Execute this with a 120 second timeout: [code]Package Not Found
Symptom: "Cannot find module 'package-name'"
Solution: Verify package name at npmjs.com
Out of Memory
Symptom: Process killed, heap error
Solution: Request more memory:
Execute this code with 1GB memory: [code]Check Execution Logs
If something went wrong:
Show me the logs from my last Actify executionWhat's Next?
Now that you know the basics, explore more:
Learn by Example
- 🚀 Example Workflows - 40+ real-world automation workflows
- 📚 Code Examples - Detailed code patterns
- 🔐 Using Secrets - Secure API key management
- ⏱️ Scheduled Jobs - Cron-based automation
Understand the Platform
- 🔧 MCP Tools Reference - All available tools
- 💳 Credits System - How billing works
- 📊 Dashboard - Monitor your usage
Get Help
- 💬 Discord Community - Ask questions
- 📧 Email Support - Get help
- 🐛 Report Issues - Bug reports
Ready to build real workflows? Check out 40+ Workflow Examples for inspiration!