Skip to content

Instantly share code, notes, and snippets.

@Codys12
Last active November 12, 2024 16:21
Show Gist options
  • Select an option

  • Save Codys12/6adcf111962c2e47741792fe0b0bd2a9 to your computer and use it in GitHub Desktop.

Select an option

Save Codys12/6adcf111962c2e47741792fe0b0bd2a9 to your computer and use it in GitHub Desktop.
Genhead Agents

Genhead Agents

Genhead is excited to announce our newest innovation: Genhead Agents! Today we are releasing two new marketplace apps, GenSpeak and GenStep, as well as a collection of snapshots you can use to instantly deploy a suite of agents to your subaccounts. With over 120 possible functions for your agents to use, we are excited to see what you build!

GenSpeak will allow you to create voice agents that can handle inbound and outbound calls from inside your subaccounts. These agents will be able to call functions enabling them to book appointments, view and manage subscriptions/transactions/invoices for customer service, creat tasks for the contact, send real time texts/emails and so much more!

GenStep enables even more flexibility across texts, emails, and internal automations. With deep workflow integration you can create and streamline automations that wouldn’t be possible without an agent-centric action. Below is an example of how a complex automation can be made into a single action:

Before:
Before

After:
enter image description here

Basics

Setting your prompt

With both GenSpeak and GenStep, you have the ability to customize your prompt to the specific context of your CRM. This includes the contact information of who you are currently messaging (all contact custom fields), as well as your subaccount information. Here is an example of this context usage in action:
Example Prompt

Inheriting Role

By default, your GenSpeak and GenStep agents will inherit the roll of the current contact in the workflow. This means that if you were to take an action like adding a tag or booking an appointment, it will be done wit the current contact that is enrolled in the workflow (the contact that the workflow action was called with). This can be disabled to allow for powerful admin agents to be created.

Functions and Actions

enter image description here
GenSpeak and GenStep have a list of 120 functions that you can choose from for your agents. You can be selective of which functions your agent gets to use, which is important for security. You may want to enable listing the active subscriptions for a contact for example, or you may choose to leave out that function for privacy reasons.

Some functions have prerequisites, meaning their inputs depend on the outputs of other functions. For example, to add the current contact to a workflow you need to list the workflows to retrieve the workflowId. Or to book an appointment, you must list the calendars so you can use the calendarId.

You have the ability to call these prerequisite functions before a contact is added to your workflow, and save these intermediate results in a custom value for use in your workflows. A comprehensive list of actions can be found here (note only subaccount actions apply). If you have any questions on the specifics of a function the best way to find out details is to ask your agent directly

Genspeak Specifics

Inbound and Outbound Calling

You can use phone numbers attached to your account for inbound and outbound calling with GenSpeak. You will have access to your phone numbers in a selection menu within the workflow action and inbound call trigger. You can use the value of the inbound call trigger to retireve the contact, parse information you want to customize, and connect the inbound call to the agent.

VAPI integration

You have the ability to bring your VAPI agents into GenSpeak by copying the phoneId, assistantId, and vapi-key into the workflow action. You can additionally set up inbound calling with your custom numbers by passing the VAPI key and phonId in the Inbound Call webhook trigger.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment