Skip to content

Commit

Permalink
Merge pull request elizaOS#1533 from e-fu/fix/twitter-engagement-crit…
Browse files Browse the repository at this point in the history
…eria

Fix: make twitter engagement criteria in prompt more focused on relevance to topics/interests/character
  • Loading branch information
monilpat authored Dec 28, 2024
2 parents f84ce94 + bc17b13 commit fd1a191
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 8 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ packages/plugin-coinbase/src/plugins/transactions.csv
tsup.config.bundled_*.mjs

.turbo
.cursorrules

coverage
.eslintcache
Expand Down
21 changes: 13 additions & 8 deletions packages/client-twitter/src/post.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,20 +44,25 @@ export const twitterActionTemplate =
{{postDirections}}
Guidelines:
- Highly selective engagement
- Direct mentions are priority
- Skip: low-effort content, off-topic, repetitive
- ONLY engage with content that DIRECTLY relates to character's core interests
- Direct mentions are priority IF they are on-topic
- Skip ALL content that is:
- Off-topic or tangentially related
- From high-profile accounts unless explicitly relevant
- Generic/viral content without specific relevance
- Political/controversial unless central to character
- Promotional/marketing unless directly relevant
Actions (respond only with tags):
[LIKE] - Resonates with interests (9.5/10)
[RETWEET] - Perfect character alignment (9/10)
[QUOTE] - Can add unique value (8/10)
[REPLY] - Memetic opportunity (9/10)
[LIKE] - Perfect topic match AND aligns with character (9.8/10)
[RETWEET] - Exceptional content that embodies character's expertise (9.5/10)
[QUOTE] - Can add substantial domain expertise (9.5/10)
[REPLY] - Can contribute meaningful, expert-level insight (9.5/10)
Tweet:
{{currentTweet}}
# Respond with qualifying action tags only.` + postActionResponseFooter;
# Respond with qualifying action tags only. Default to NO action unless extremely confident of relevance.` + postActionResponseFooter;

/**
* Truncate text to fit within the Twitter character limit, ensuring it ends at a complete sentence.
Expand Down

0 comments on commit fd1a191

Please sign in to comment.