Documentation Index
Fetch the complete documentation index at: https://docs.mavera.io/llms.txt
Use this file to discover all available pages before exploring further.
Scenario
Your#sales or #deals channel is full of real objections, buyer quotes, competitive mentions, and win patterns — all in the words your reps actually use. This job pulls recent messages, sends them to Mave for structured extraction, and produces a messaging playbook: top objections with rebuttals, winning phrases, competitive positioning, and persona-specific talk tracks.
Flow: Slack conversations.history (#sales) → Mavera POST /mave/chat → Messaging playbook
Code
Example Output
Error Handling
Channel not found
Channel not found
Ensure the bot is invited to the channel.
not_in_channel error means you need to /invite @bot. channel_not_found means the ID is wrong — use conversations.list to verify.Rate limits
Rate limits
conversations.history is Tier 3 (50 req/min). Pagination with 200 messages per page keeps most channels under 5 calls. Add 1s delay between pages.Thread replies
Thread replies
Channel history doesn’t include threaded replies by default. For important threads, fetch
conversations.replies with the thread’s ts.PII in messages
PII in messages
Sales channels often contain prospect names, emails, and deal amounts. Strip PII before sending to external APIs. The code limits to 500 chars per message to reduce exposure.