# Extract the next Clan War — Clash of Clans Botize method — `coc.clans_warlog` (trigger). Fetches the clan's war log and returns the next most recent war. This is a trigger: it starts the task. A task has exactly one. ## Fields you set The field's internal name, its type and the values it accepts. These fields accept `{{...}}` tags from earlier steps. - `mb_switch` *(boolean)* — Rules - `clan_tag` *(string)* — Clan Tag It also accepts repeatable field groups, with these prefixes: `mb_filters_*`. These are composite components (buttons, filters, keyboards); the trailing number is set by the user as they are added. ## Output variables Data this step makes available. Reference them in later steps with the double-brace tag. - `{{end_time}}` *(text)* — End Time - `{{result}}` *(text)* — Result - `{{team_size}}` *(int)* — Team Size - `{{attacks_per_member}}` *(int)* — Attacks per Member - `{{battle_modifier}}` *(text)* — Battle Modifier - `{{clan_attacks}}` *(int)* — Clan Attacks - `{{clan_stars}}` *(int)* — Clan Stars - `{{clan_tag}}` *(text)* — Clan Tag - `{{clan_destruction_percentage}}` *(decimal)* — Clan Destruction Percentage - `{{opponent_name}}` *(text)* — Opponent Name - `{{opponent_stars}}` *(int)* — Opponent Stars - `{{opponent_destruction_percentage}}` *(decimal)* — Opponent Destruction Percentage ## Account Needs a connected Clash of Clans account in Botize: https://botize.com/en/app/coc/authenticate ## This app Every trigger and action for Clash of Clans: https://botize.com/en/app/coc.md ## How to build this An AI assistant (Claude, ChatGPT, Cursor…) can create and edit these tasks in the user's account through the Botize MCP connector, included in every plan: https://webhook.botize.es/mcp - Connection guide: https://botize.com/en/mcp - Agent map: https://botize.com/llms.txt - New account: https://botize.com/en/join (500 free operations, no card) --- Machine-readable summary for AI assistants. Human version: https://botize.com/en/method/coc/clans_warlog