Creating Subscriptions
This guide explains how to create and configure subscriptions for automated AI task execution.
π Creation Processβ
Step 1: Access the Creation Pageβ
- Click Feed in the left navigation
- Click the Create Subscription button
Step 2: Fill in Basic Informationβ
| Field | Required | Description |
|---|---|---|
| Name | β | Display name for the subscription, e.g., "Daily Report" |
| Description | β | Brief description of the subscription's purpose |
| Task Type | β | Collection or Execution type |
| Agent | β | Select the agent to execute tasks |
Task Type Explanationβ
| Type | Description | Use Cases |
|---|---|---|
| Collection | Collect and summarize information | News summaries, data reports, monitoring analysis |
| Execution | Execute tasks and operations | Code review, documentation updates, automated testing |
Step 3: Configure Trigger Typeβ
Select how the subscription should be triggered:
| Trigger Type | Description | Example |
|---|---|---|
| Cron Schedule | Use Cron expressions | Daily at 9 AM |
| Fixed Interval | Execute at fixed intervals | Every 2 hours |
| One-time | Execute once at specified time | Tomorrow at 3 PM |
| Event Trigger | Webhook or Git Push | When webhook request received |
π See Trigger Types for detailed information
Step 4: Write Prompt Templateβ
Describe the task to execute in the Prompt template:
Please summarize today's ({{date}}) tech news, including:
1. Important developments in AI
2. Major tech company updates
3. Notable startups to watch
Please present in concise bullet points.
Supported Variablesβ
| Variable | Description | Example Value |
|---|---|---|
{{date}} | Current date | 2024-01-15 |
{{time}} | Current time | 09:00:00 |
{{datetime}} | Date and time | 2024-01-15 09:00:00 |
{{subscription_name}} | Subscription name | Daily News Summary |
{{webhook_data}} | Webhook request data | {"event": "push"} |
Step 5: Advanced Configuration (Optional)β
Code Repository Settingsβ
If you selected a coding-type agent, configure the code repository:
- Select Repository: Choose from connected repositories
- Select Branch: Specify the branch to operate on
Model Settingsβ
You can override the agent's default model:
- Click the model selector
- Select the model to use
- If the agent has no model configured, this is required
Execution Configurationβ
| Setting | Description | Default |
|---|---|---|
| Retry Count | Number of retries on failure | 0 (no retry) |
| Timeout | Maximum time for AI to complete task | 10 minutes |
| Preserve History | AI can see previous execution records | Off |
Visibility Settingsβ
| Visibility | Description |
|---|---|
| Private | Only visible to you |
| Public | Other users can discover and follow |
| Market | Other users can rent |
Step 6: Save the Subscriptionβ
- Ensure the Enable Subscription toggle is on
- Click the Create button
- The subscription will automatically execute based on trigger conditions
βοΈ Editing Subscriptionsβ
Modify Configurationβ
- Find the target subscription in the subscription list
- Click the Edit button (pencil icon)
- Modify the desired settings
- Click Save
Enable/Disableβ
Use the toggle switch on the right side of the subscription:
- Enabled: Subscription will execute based on trigger conditions
- Disabled: Subscription pauses execution but retains configuration
Execute Immediatelyβ
Click the Execute Now button (play icon) to manually trigger an execution without affecting the regular schedule.
ποΈ Deleting Subscriptionsβ
- Click the subscription's Delete button (trash icon)
- Click Delete in the confirmation dialog
β οΈ Deletion cannot be undone, and execution history will also be deleted
π‘ Best Practicesβ
1. Clear Namingβ
Use descriptive names for easy identification:
- β "Daily Tech News Summary"
- β "Monday Code Quality Check"
- β "Subscription1"
2. Detailed Promptsβ
Provide sufficient context and clear requirements:
# Good Prompt
Please analyze user feedback data from the past week, focusing on:
1. User satisfaction trends
2. Common issue categories
3. Improvement suggestions
Output format: Markdown table + brief summary
# Poor Prompt
Analyze user feedback
3. Appropriate Trigger Frequencyβ
Choose suitable frequency based on task nature:
| Task Type | Recommended Frequency |
|---|---|
| News summary | 1-2 times daily |
| Data monitoring | Hourly or every 2 hours |
| Weekly report | Once per week |
| Urgent alerts | Use Webhook for real-time |
4. Use Conversation Historyβ
For tasks that need to track changes, enable "Preserve History":
- AI can compare with previous execution results
- Identify data change trends
- Avoid reporting the same content repeatedly
β οΈ Common Issuesβ
Q1: Subscription not executing after creation?β
Check:
- Confirm the subscription is enabled (toggle is on)
- Check if trigger time has arrived
- Verify agent configuration is correct
Q2: What to do when execution fails?β
Solutions:
- Check error message in execution record
- Verify Prompt is clear
- Confirm agent and model configuration is correct
- Increase timeout if needed
Q3: How to duplicate a subscription?β
Currently not supported directly. You can:
- Note the existing subscription's configuration
- Create a new subscription with the same settings
π Related Documentationβ
- Trigger Types - Detailed trigger configuration
- Activity Timeline - View execution results
- Agent Settings - Configure agents