Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Create custom actions for ChatrHub's automated chat agents. https://chatrhub.com
Create custom actions for ChatrHub's automated chat agents https://chatrhub.com. (Create a free account if you dont have one already here: https://chatrhub.com/signup/index.html). Use this module when you want your chat dialog to interface with internal systems such as inventory or user management data stores.
You can pass variables collected in the dialog to the endpoint for processing and you can also pass variables back to the dialog to display to the user.
pip install chatendpoint
from chatendpoint.chatendpoint import ChatEndpoints
def create_user(dialog_variables):
# All dialog variables will be available in the dialog_variables dictionary
# dialog_variables example:
# {
# 'literal': 'F-150',
# 'value': 'F-150',
# }
# Using the dialog variables, access your data store, manipulate data, and
# return a dictionary which will add/update variables back to dialog.
return {'user_created': 'success'}
if __name__ == "__main__":
ce = ChatEndpoints()
# Create as many endpoints as you need.
ce.add_post_endpoint(path='/create_user', data_processor=create_user)
ce.start(port=8888)
See demos/car_dealership_demo.py for a more in-depth example
These endpoints will allow you to receive dialog variables, process the data as needed, then return any variables that should be be added or updated to the dialog.
Default port is 8888
In the ChatrHub portal make sure you collect any variables via questionnaires before sending to your action endpoint. Setup a free account at https://chatrhub.com/signup/index.html
Open port 8888 (Or whatever port you selected) to the ChatrHub IP address obtained by sending an email to admin@chatrhub.com.
Run the server in the background by running the script created in step 2.
This project is licensed under the MIT License.
FAQs
Create custom actions for ChatrHub's automated chat agents. https://chatrhub.com
We found that chatendpoint 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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.