Custom use cases
FleetWorks’ voice infrastructure supports a variety of custom use cases beyond carrier sales, including inbound and outbound tracking, Proof of Delivery (POD) collection, and insurance documentation collection.
How It Works
- A custom use case is triggered.
- An outbound call is made to complete the designated task (for example, collecting a carrier’s current location).
- The results are sent to your server URL.
Triggering a Custom Use Case
Users can initiate custom use cases by:
- Using the UI: Enter a prompt and manually upload a CSV file containing the necessary data—such as a list of phone numbers, prompt variables, and the scheduled time to trigger the call.
- Via API: Make an API call to initiate the process. Refer to trigger outbound call for API details.
Server Events
Each organization has a user-specified webhook URL and server secret that receives the call results. Events are sent to your configured webhook URL with the header x-fleetworks-secret
(your secret).
List of supported events can be found in Call events.
This is an example for call_ended
event payload.
Prompt Engineering
Effective prompt engineering is crucial to ensure your custom agents perform tasks accurately and consistently. This guide provides insights on crafting prompts that are clear, structured, and adaptable to various use cases.
This guide is a work in progress and will be updated as new insights emerge. Your feedback is welcome.
Accessing Prompts
When you create a new use case, we populate a template to help you get started. These templates are designed for ease of use, maintainability, and clarity.
Sectional Prompts
Dividing system prompts into distinct sections—such as identity, style, response guidelines, and tasks—provides the following benefits:
- Reusability: Use common sections across multiple use cases.
- Ease of Maintenance: Update individual sections without overhauling the entire prompt.
- Enhanced Understanding: Structured prompts are easier for language models to follow.
Track-and-Trace Prompt Example
Below is an example prompt tailored for a track-and-trace use case.
Writing Tasks as Steps
When designing a call flow for track-and-trace use cases, structuring the conversation into clear, sequential steps ensures that each piece of information is gathered methodically. Below is an example derived from our track-and-trace prompt:
-
Greeting and Consent
- Step: Ask, “Hello, this is Fred from FleetWorks track-and-trace. May I ask you a few quick questions to confirm your current status?”
- Action: Wait for the driver’s response.
- Outcome:
- If the driver agrees, move to the next step.
- If the driver declines, transition to the call closing procedure.
-
Identity Verification
- Step: Ask, “Could you please confirm your driver ID for verification?”
- Action: Wait for the driver’s response and validate the provided ID. If the response is unclear, ask for clarification.
-
Location Confirmation
- Step: Ask, “What is your current location? Please provide your city or the nearest landmark.”
- Action: Wait for the response before proceeding.
-
Load Status Inquiry
- Step: Ask, “Are you currently loaded or empty?”
- Action: Wait for the driver’s response.
- Outcome:
- If loaded, follow up with: “Can you specify the type of cargo and its condition?”
- If empty, ask: “Are you available for a new assignment?”
- Action: Wait for the relevant response before moving on.
-
Delay or Issue Check
- Step: Ask, “Are you experiencing any delays or issues, such as heavy traffic, severe weather, or mechanical problems?”
- Action: Wait for the response.
- Outcome:
- If issues are reported, ask: “Could you describe the issue briefly?”
- Otherwise, proceed to the next step.
-
ETA Confirmation
- Step: Ask, “What is your estimated time of arrival at your next destination?”
- Action: Wait for the response and confirm the provided ETA.
-
Route Update Inquiry
- Step: Ask, “Have there been any recent changes to your route or schedule that dispatch should know about?”
- Action: Wait for the response.
- Outcome:
- If changes are mentioned, ask for the updated details.
-
Final Confirmation
- Step: Ask, “To confirm, could you repeat your current location and cargo status?”
- Action: Wait for the driver’s confirmation before proceeding.
-
Call Closing
- Step: Thank the driver for their time and confirm that the information has been recorded.
- Action: End the conversation professionally.
This ensures that every necessary detail is captured while maintaining a smooth and efficient conversation flow.