PokkanStrings in Sources
A Source stores an interactive component’s response. Using PokkanStrings there gives the response access to the person clicking or selecting, without embedding the response definition in the published message.
Prepare a response
Section titled “Prepare a response”- Add a regular Button or String Select to a server Kit.
- Select the component and open Source.
- Write
Hi @user.name!and save the Kit. Choose whether the response is visible only to the person interacting or to the channel. - Send through the bot to a test channel and use the published component from an account that can execute Kits.
The response evaluates with the clicking person’s context. For selections, @values contains chosen items; arguments and selections shows how to read them.
A Link Button opens a URL. To respond with text or apply a subkit, configure a Source on a regular Button or a select.
Update a published response
Section titled “Update a published response”After changing and saving the Source, future interactions use the new definition, including those on older messages. The post’s appearance stays unchanged because sent content and interactive responses have separate lifecycles.
If the response is unavailable, check that the person can execute Kits in that server and that the original Source still exists. A published component retains its link to that Source. If you replace it with a new Source, publish the Kit again to use the new link.
Choose a delivery path
Section titled “Choose a delivery path”Publish with Send → Channel or a bot command to connect the component to its Source. Use a webhook for literal text and components that do not need a response from Pokkan.
The component response guide covers saving and updating a Source. For a response that uses a menu selection, follow the example in recipes.