Threads
Profil Threads, publikasi, balasan, moderasi, mention dan pencarian
Beta v0.3.0 Node.js 16 aksi Risiko ToS rendah
Tentang
Plugin Graphrt untuk Threads API resmi (graph.threads.net). Plugin ini membaca profil dan post akun, menerbitkan thread berupa teks, gambar, video dan carousel, memoderasi balasan, serta membaca mention dan pencarian kata kunci. Setiap operasi adalah node workflow. Tool agent dibatasi oleh kebijakan agent.
Yang bisa dilakukan
- Profile: own profile, public profile lookup by username, publishing quota, long-lived token refresh
- Posts: list threads and own replies, list mentions, keyword/topic-tag search, repost, delete
- Publishing: TEXT, IMAGE, VIDEO or CAROUSEL (2–20 items), as a reply or quote, with poll (2–4 options), link preview, topic tag, alt text and reply controls. The plugin waits for media processing.
- Replies: list top-level replies or the full conversation, hide/unhide, list and approve/ignore pending replies
- api_request: any other Threads endpoint (e.g. insights), restricted to graph.threads.net
- Retries rate limits, gives clear error kinds, and never puts tokens in errors.
Aksi
Setiap aksi adalah langkah yang bisa ditambahkan ke workflow. Agent juga bisa memakai sebagian besar aksi sebagai tool.
- Get Threads profile
threads-api.get_profile - Look up Threads profile
threads-api.lookup_profile - Get Threads publishing limit
threads-api.get_publishing_limit - Refresh Threads access token
threads-api.refresh_access_token - List Threads posts
threads-api.list_threads - List my Threads replies
threads-api.list_my_replies - List Threads mentions
threads-api.list_mentions - Search Threads
threads-api.keyword_search - Repost thread
threads-api.repost_thread - Delete thread
threads-api.delete_thread
Tampilkan semua 16 aksi
- Publish thread
threads-api.publish_thread - List Threads replies
threads-api.list_replies - Hide/unhide Threads reply
threads-api.hide_reply - List pending Threads replies
threads-api.list_pending_replies - Approve/ignore pending Threads reply
threads-api.approve_pending_reply - Threads API request
threads-api.api_request
Pengaturan
Graphrt menyalakan plugin dengan environment yang bersih. Hanya nilai ini yang sampai ke plugin, dan secret tidak masuk log.
-
THREADS_ACCESS_TOKENWajibThreads user access token (sent as a Bearer header) -
THREADS_TOOL_ALLOW_POSTOpsional1 lets agent tools publish posts, replies and quotes and repost (see Agent policy) -
THREADS_TOOL_ALLOW_ENGAGEOpsional1 lets agent tools hide, unhide, approve or ignore replies -
THREADS_API_TOOL_TOKEN_SOURCE
Cara memakainya
Di Graphrt Desktop
- Buka Plugins dan cari Threads.
- Klik Install lalu setujui.
- Ikuti langkah setup di halaman plugin, lalu tempel pengaturan yang dibutuhkan.
- Jelaskan pekerjaan yang membutuhkannya, dan builder menambahkan langkahnya.
Dengan CLI
terminal
$ graphrt plugin install threads-api workflow.yaml
- id: post
type: threads-api.publish_thread
text: "Rilis baru sudah live!"
topic_tag: "graphrt"
reply_control: "followers_only"
- id: carousel
type: threads-api.publish_thread
media_type: CAROUSEL
text: "Behind the scenes"
carousel_items: '[{"image_url":"https://example.com/1.jpg"},{"video_url":"https://example.com/2.mp4"}]'
- id: hide
type: threads-api.hide_reply
reply_id: "{{#start.reply_id#}}"
hidden: true