Chuyển tới nội dung chính

Cấu hình script Account Warmup

Trang này mô tả các tham số cấu hình cho script account_warmup khi tạo task.

Tổng quan

Script account_warmup dùng để làm ấm tài khoản TikTok hoặc Instagram bằng cách mô phỏng hành vi người dùng tự nhiên. Script sẽ xem video và ngẫu nhiên thực hiện like, follow, lưu (bookmark), comment theo xác suất đã cấu hình. Điều này giúp tài khoản mới xây dựng lịch sử tương tác và giảm rủi ro bị nhận diện là bot.

Cấu hình script (script_config)

Đối tượng script_config chứa các tham số của script làm ấm tài khoản:

Tham số

Tham sốKiểuBắt buộcMặc địnhMô tả
task_durationnumberKhông600Tổng thời lượng task làm ấm (giây)
topicstringKhông""Từ khóa chủ đề tìm kiếm (mỗi dòng một mục, chọn ngẫu nhiên)
min_durationnumberKhông15Thời gian xem video tối thiểu (giây)
max_durationnumberKhông30Thời gian xem video tối đa (giây)
like_probablenumberKhông0Xác suất like video (0-100)
floow_probablenumberKhông0Xác suất follow người tạo video (0-100)
collect_probablenumberKhông0Xác suất lưu/bookmark video (0-100)
comment_probablenumberKhông0Xác suất comment video (0-100)
commentstringKhông""Mẫu comment (mỗi dòng một mẫu, chọn ngẫu nhiên)
insert_emojibooleanKhôngfalseCó chèn emoji ngẫu nhiên trong comment hay không
comment_orderstringKhông"random"Thứ tự chọn comment: random hoặc sequential
generate_by_chatgptbooleanKhôngfalseCó dùng ChatGPT để tạo comment hay không
chatgpt_settingsobjectKhôngThiết lập ChatGPT (xem bên dưới)

Cấu trúc chatgpt_settings

Khi generate_by_chatgpt đặt là true, bạn có thể cấu hình tạo comment bằng chatgpt_settings:

Tham sốKiểuBắt buộcMô tả
api_keystringOpenAI API key của bạn
modelstringKhôngModel sử dụng (mặc định: gpt-3.5-turbo). Tùy chọn: gpt-3.5-turbo, gpt-4, gpt-4-turbo
promptstringKhôngPrompt tùy chỉnh để tạo comment. Mặc định sẽ tạo comment thân thiện và liên quan
max_tokensnumberKhôngSố token tối đa của phản hồi (mặc định: 100)
temperaturenumberKhôngMức sáng tạo 0-2 (mặc định: 0.7). Giá trị cao hơn = sáng tạo hơn
base_urlstringKhôngURL endpoint API tùy chỉnh (Azure OpenAI hoặc API tương thích)

Ví dụ chatgpt_settings:

{
"api_key": "sk-your-openai-api-key",
"model": "gpt-3.5-turbo",
"prompt": "Hãy tạo một bình luận tiếng Việt ngắn gọn, thân thiện cho video này",
"max_tokens": 50,
"temperature": 0.8,
"base_url": "https://api.openai.com/v1"
}
Gợi ý

Với tài khoản mới, nên bắt đầu từ xác suất tương tác thấp (5-15%) và tăng dần theo thời gian để mô phỏng hành vi tự nhiên.

Ví dụ

Làm ấm tài khoản cơ bản

Làm ấm đơn giản chỉ bằng cách xem video:

curl -X POST http://localhost:50809/api/v1/task \
-H "Content-Type: application/json" \
-d '{
"serials": ["device_serial_1"],
"script_name": "account_warmup",
"script_config": {
"task_duration": 600,
"min_duration": 10,
"max_duration": 30
}
}'

Làm ấm theo chủ đề tìm kiếm

curl -X POST http://localhost:50809/api/v1/task \
-H "Content-Type: application/json" \
-d '{
"serials": ["device_serial_1"],
"script_name": "account_warmup",
"script_config": {
"task_duration": 900,
"topic": "mèo hài hước\nvideo chó\ntổng hợp thú cưng",
"min_duration": 15,
"max_duration": 45
}
}'

Làm ấm có tương tác

curl -X POST http://localhost:50809/api/v1/task \
-H "Content-Type: application/json" \
-d '{
"serials": ["device_serial_1"],
"script_name": "account_warmup",
"script_config": {
"task_duration": 1200,
"topic": "ẩm thực\ncông thức nấu ăn\nnấu ăn",
"min_duration": 20,
"max_duration": 60,
"like_probable": 30,
"floow_probable": 10,
"collect_probable": 5,
"comment_probable": 15,
"comment": "Tuyệt vời quá! 🔥\nMình rất thích nội dung này!\nHay lắm! 👏\nWow, quá đỉnh!",
"insert_emoji": true,
"comment_order": "random"
}
}'

Làm ấm với comment do ChatGPT tạo

curl -X POST http://localhost:50809/api/v1/task \
-H "Content-Type: application/json" \
-d '{
"serials": ["device_serial_1"],
"script_name": "account_warmup",
"script_config": {
"task_duration": 1800,
"topic": "đánh giá công nghệ\nthiết bị số",
"min_duration": 30,
"max_duration": 90,
"like_probable": 25,
"comment_probable": 20,
"generate_by_chatgpt": true,
"chatgpt_settings": {
"api_key": "your-api-key",
"model": "gpt-3.5-turbo",
"prompt": "Hãy tạo một bình luận ngắn, thân thiện cho video này"
}
}
}'

Làm ấm hàng loạt trên nhiều thiết bị

curl -X POST http://localhost:50809/api/v1/task \
-H "Content-Type: application/json" \
-d '{
"serials": ["device_1", "device_2", "device_3"],
"script_name": "account_warmup",
"script_config": {
"task_duration": 600,
"min_duration": 15,
"max_duration": 30,
"like_probable": 20
},
"enable_multi_account": true
}'

Task làm ấm theo lịch

curl -X POST http://localhost:50809/api/v1/task \
-H "Content-Type: application/json" \
-d '{
"serials": ["device_serial_1"],
"script_name": "account_warmup",
"script_config": {
"task_duration": 1200,
"topic": "âm nhạc\nnhảy\nxu hướng",
"min_duration": 20,
"max_duration": 40,
"like_probable": 15,
"floow_probable": 5
},
"start_time": "09:00"
}'

Làm ấm theo danh sách username

curl -X POST http://localhost:50809/api/v1/task \
-H "Content-Type: application/json" \
-d '{
"usernames": ["@my_account1", "@my_account2"],
"script_name": "account_warmup",
"script_config": {
"task_duration": 600,
"min_duration": 15,
"max_duration": 30,
"like_probable": 20,
"floow_probable": 5
}
}'

Phản hồi

{
"code": 0,
"message": "success",
"data": {
"task_ids": [301, 302, 303],
"created_count": 3
}
}

Thực hành tốt nhất

  1. Bắt đầu từ xác suất thấp: tài khoản mới nên bắt đầu ở mức 5-15%, sau đó tăng dần.
  2. Dùng chủ đề liên quan: chọn chủ đề phù hợp định vị tài khoản.
  3. Thay đổi thời lượng xem: thiết lập phạm vi min_durationmax_duration để mô phỏng tự nhiên.
  4. Thời lượng task vừa phải: nên chạy 2-3 phiên/ngày, mỗi phiên 10-30 phút.
  5. Đa dạng comment: dùng nhiều mẫu comment để tránh lặp lại.
  6. Lên lịch thông minh: dùng start_time theo múi giờ khán giả mục tiêu.

Xem thêm