agent: | Auto Exec |
What is an "Expert"? How do we create our own expert?
Add credentials for various integrations
Managing workspaces and access control
DagKnows Architecture Overview
Setting up SSO via Azure AD for Dagknows
Enable "Auto Exec" and "Send Execution Result to LLM" in "Adjust Settings" if desired
(Optionally) Add ubuntu user to docker group and refresh group membership
Deployment of an EKS Cluster with Worker Nodes in AWS
Adding, Deleting, Listing DagKnows Proxy credentials or key-value pairs
Comprehensive AWS Security and Compliance Evaluation Workflow (SOC2 Super Runbook)
AWS EKS Version Update 1.29 to 1.30 via terraform
Instruction to allow WinRM connection
MSP Usecase: User Onboarding Azure + M365
Post a message to a Slack channel
How to debug a kafka cluster and kafka topics?
Open VPN Troubleshooting (Powershell)
Execute a simple task on the proxy
Assign the proxy role to a user
Create roles to access credentials in proxy
Install OpenVPN client on Windows laptop
Setup Kubernetes kubectl and Minikube on Ubuntu 22.04 LTS
Install Prometheus and Grafana on the minikube cluster on EC2 instance in the monitoring namespace
update the EKS versions in different clusters
AI agent session 2024-09-12T09:36:14-07:00 by Sarang Dharmapurikar
Parse EDN content and give a JSON out
Check whether a user is there on Azure AD and if the user account status is enabled
Get the input parameters of a Jenkins pipeline
Process Zendesk ticket
- 1Y2xjI9XPFcyXkfef5groExtract an IPv4 address from text
1
Extract an IPv4 address from text
There was a problem that the LLM was not able to address. Please rephrase your prompt and try again.inputsoutputsimport re def extract_ipv4(text): pattern = re.compile(r"\b(?:[0-9]{1,3}\.){3}[0-9]{1,3}\b") ipv4_addresses = pattern.findall(text) return ipv4_addresses op = extract_ipv4(text) if op: print(op) ipv4_address = op else: context.proceed = Falsecopied1 - 2P3B63YoTRl0Cg0m8dynrDo basic health check on a server
2
Do basic health check on a server
There was a problem that the LLM was not able to address. Please rephrase your prompt and try again.inputsoutputsop = "```\n" op += "Memory check: \n" op += _exe(host, "free") op += "\n\n" op += "CPU check: \n" op += _exe(host, "top -b -n 1 | grep Cpu") op += "\n\n" op += "Disk check: \n" op += _exe(host, "df /") op += "\n" op += "```" health_check_summary = op print(op)copied2 - 3H0KOvmf9Rx4GNd3Rh7ErAdd a private comment to a Zendesk ticket
3
Add a private comment to a Zendesk ticket
There was a problem that the LLM was not able to address. Please rephrase your prompt and try again.This task is designed to append a non-public, internal comment to a specific Zendesk ticket, facilitating internal team communications and notes without exposing the information to the ticket requester.
inputsoutputsimport zenpy from zenpy.lib.exception import ZenpyException # Credentials for Zendesk API creds = _get_creds(cred_label)['creds'] ZENDESK_EMAIL = creds['username'] ZENDESK_TOKEN = creds['password'] #TICKET_ID_TO_UPDATE = '3' # Replace with your ticket ID UPDATE_FIELDS = { 'comment': comment # Add other fields as needed } # Initialize Zenpy client client = zenpy.Zenpy(email=ZENDESK_EMAIL, token=ZENDESK_TOKEN, subdomain=ZENDESK_SUBDOMAIN) def update_ticket(ticket_id, update_fields): """ Update a Zendesk ticket with the given fields. Parameters: - ticket_id: The ID of the ticket to update. - update_fields: A dictionary containing the fields to update, including comments. """ try: # Retrieve the ticket by ID ticket = client.tickets(id=ticket_id) # Update fields of the ticket for key, value in update_fields.items(): if key.lower() == 'subject': ticket.subject = value elif key.lower() == 'comment': # Special handling for comments ticket.comment = zenpy.lib.api_objects.Comment(body=value, public=False) # Add other fields handling as needed # Update the ticket in Zendesk client.tickets.update(ticket) return True except ZenpyException as e: print(f"ZenpyException occurred: {e}") return False except Exception as e: print(f"An error occurred: {e}") return False # Update the ticket if update_ticket(TICKET_ID_TO_UPDATE, UPDATE_FIELDS): print(f"Ticket {TICKET_ID_TO_UPDATE} updated successfully.") else: print("Failed to update ticket.")copied3