Skip to content

forcedotcom/sf-skills / skills/service-de-channel-routing-configure

service-de-channel-routing-configure

Verified

Configure routing on a newly-inserted Enhanced `MessagingChannel` so activation will accept it. Given a `{CHANNEL_ID}`, walks through picking a routing type (Omni-Channel Queue, Omni-Flow, Agentforce Service Agent, Digital Worker, or direct User), locates or provisions the target, then PATCHes `SessionHandlerId` (plus `FallbackQueueId` where required). Use between insertion and activation — activation fails server-side with `nullQueueId`/`LiveMessageSetupException` if no valid `SessionHandlerId` is set. Do not use for full end-to-end setup — use `service-de-headless-channel-configure`.

scripts/tests/test_skill_contract.py

View on GitHub
#!/usr/bin/env python3
import unittest
from pathlib import Path


class ExistingAsaRouteTests(unittest.TestCase):
    def test_noop_revalidates_bot_user_and_active_version(self):
        skill = Path(__file__).resolve().parents[2] / "SKILL.md"
        source = skill.read_text()
        noop_contract = source.split(
            "If `SessionHandlerId` is non-null", 1
        )[1].split("For other prefixes", 1)[0]

        self.assertIn("0Xx) sf data query", noop_contract)
        self.assertIn("BotUserId", noop_contract)
        self.assertIn("WHERE Status='Active'", noop_contract)
        self.assertIn("require a non-null `BotUserId`", noop_contract)
        self.assertIn(
            '{"ok":false,"kind":"asa-target-inactive"',
            noop_contract,
        )


if __name__ == "__main__":
    unittest.main(verbosity=2)
reverse-engineer-anythingmorluto/reaReverse engineer native, managed, Electron/JavaScript, packaged, firmware, and browser targets with REA, and build agent environments (AgentEnv bundles) of web applications from a live instance or a capture, and of Linux desktop apps with a task from a request. Use shipped-artifact or requested runtime evidence to explain features, compare versions, decompile code, or guide a reconstruction. Skip REA for ordinary source-repository architecture analysis.Stars: 472kUpdated Claude CodeCodexVerifiedInstall
diagnosing-superpowersobra/superpowersUse when a superpowers session went wrong and your human partner wants to know why — repeated work, ignored plans, stumbles, poor results, a skill that didn't fire, "it took too long", "why is it so expensive", "what is it doing" — or wants to build a bug report for the superpowers maintainers, for the current session or a past one identified by id or path, on any harness.Stars: 322kUpdated Claude CodeCodexVerifiedInstall
dispatching-parallel-agentsobra/superpowersUse when facing 2+ independent tasks that can be worked on without shared state or sequential dependenciesStars: 322kUpdated Claude CodeCodexVerifiedInstall
executing-plansobra/superpowersUse when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is availableStars: 322kUpdated Claude CodeCodexVerifiedInstall