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 |
On-demand group silence and mentionsβ
After a subscription is bound to a group chat, the AI can control that run's group notification. This works for Chat, ClaudeCode, Codex, Agno, and Dify shells. The system appends the control instructions to the execution Prompt. These rules control group routing only and do not change private notifications. Group delivery is the default only for enabled channels that support it. DingTalk group delivery requires an AI card template (card_template_id); legacy channels without a template do not send group notifications, and private delivery still follows its existing configuration. Only an explicit task or user request not to notify the group for that run permits γιι»γ or γsilentγ. Mention markers can be used independently when specific users need to be mentioned. All control markers must appear on a separate final line of the answer, enclosed in γγ:
γιι»γorγsilentγ: send the private notification normally, but skip the bound group chat.γ@ε葨:1234,1235γorγmention:1234,1235γ: mention these DingTalk staffIds in the group chat for this run. Separate IDs with English or Chinese commas; the colon after the list keyword may be ASCII or full-width.
There is no static mention list to maintain in notification settings; each run decides from the message tail. When the run should deliver normally without mentions, it must not emit a control marker. Mentions may only use staffIds explicitly provided or unambiguously recoverable from the task context; they must not be invented. Both markers may be present; silence takes precedence. The markers control routing only and are removed from group messages, webhook payloads and execution history before use. Group silence must not affect private delivery, and group notification control should not be replaced by silent_exit.
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