
Security News
Feross on the 10 Minutes or Less Podcast: Nobody Reads the Code
Socket CEO Feross Aboukhadijeh joins 10 Minutes or Less, a podcast by Ali Rohde, to discuss the recent surge in open source supply chain attacks.
@loopstack/create-chat-message-tool
Advanced tools
A module for the Loopstack AI automation framework.
This module provides a tool for creating chat messages within workflows, enabling conversational interfaces and message-based interactions.
The Create Chat Message Tool enables workflows to generate chat messages programmatically. It supports creating single or multiple messages in one operation, making it ideal for building conversational workflows, chatbots, and interactive assistants.
By using this tool, you'll be able to:
This tool is essential for workflows that need to communicate with users through a conversational interface or build AI-powered assistants.
See SETUP.md for installation and setup instructions.
Inject the tool in your workflow class using the @InjectTool() decorator:
import { BaseWorkflow, Final, Initial, InjectTool, Transition, Workflow } from '@loopstack/common';
import { CreateChatMessage } from '@loopstack/create-chat-message-tool';
@Workflow({
uiConfig: __dirname + '/my.ui.yaml',
})
export class MyWorkflow extends BaseWorkflow {
@InjectTool() createChatMessage: CreateChatMessage;
@Initial({ to: 'ready' })
async sendWelcome() {
// Create a single message
await this.createChatMessage.call({
role: 'assistant',
content: "Hello! I'm your assistant. How can I help you today?",
});
}
@Transition({ from: 'ready', to: 'waiting', wait: true })
async userInput() {
// Wait for user input
}
@Final({ from: 'waiting' })
async sendResponse() {
// Create multiple messages at once
await this.createChatMessage.call([
{ role: 'assistant', content: 'Thanks for your message!' },
{ role: 'assistant', content: 'Here is your response.' },
]);
}
}
Author: Jakob Klippel
License: Apache-2.0
@loopstack/create-chat-message-tool in the Loopstack RegistryFAQs
A tool to create chat messages from in a workflow
The npm package @loopstack/create-chat-message-tool receives a total of 918 weekly downloads. As such, @loopstack/create-chat-message-tool popularity was classified as not popular.
We found that @loopstack/create-chat-message-tool demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Socket CEO Feross Aboukhadijeh joins 10 Minutes or Less, a podcast by Ali Rohde, to discuss the recent surge in open source supply chain attacks.

Research
/Security News
Campaign of 108 extensions harvests identities, steals sessions, and adds backdoors to browsers, all tied to the same C2 infrastructure.

Security News
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.