Skip to main content
Skip table of contents

Widgets and Prompts: Shaping AI Interactions and Automation

Widgets and Prompts are the tools that allow you to shape how the AI interacts with users, processes information in real-time, and automates tasks across various web applications.

Understanding Widgets and Prompts

Widgets are user interface elements that display information or accept input during a session. They can show AI-generated suggestions, capture user inputs, or display relevant data from your knowledge base.

Prompts are instructions or questions given to the AI model to guide its reasoning, output, and actions. They are the core of how you customize the AI's behavior, responses, and automation capabilities.

Types of Prompts

Prompts in Spinf can generate various types of outputs and actions:

  1. TEXT: Simple text output for analysis and suggestions

  2. MARKDOWN: Formatted text output for more complex responses

  3. ACTIONS (automating tasks in web applications)

  4. (Coming soon) Yes/No/Undefined responses

  5. (Coming soon)True/False/Undefined values

  6. (Coming soon) Single string categories (e.g., "conversation topic")

  7. (Coming soon) Numeric values or scores (e.g., "sentiment score")

TEXT and MARKDOWN Prompts: Analyzing Conversations and Knowledge Base

TEXT and MARKDOWN prompts are powerful tools for processing information and generating insightful responses based on the conversation context and knowledge base.

TEXT Prompts

TEXT prompts are designed for generating simple, unformatted text outputs. They are ideal for:

  • Quick analyses of conversation tone or content

  • Generating brief suggestions or answers

  • Summarizing key points from a conversation

  • Extracting specific information from the knowledge base

Example TEXT prompt:
"Summarize the main concerns expressed by the customer in this conversation in 2-3 short sentences."

MARKDOWN Prompts

MARKDOWN prompts allow for more structured and formatted outputs. They are perfect for:

  • Detailed analyses of complex situations

  • Creating formatted lists or tables of information

  • Providing step-by-step instructions or recommendations

  • Generating comprehensive summaries with headers and emphasis

Example MARKDOWN prompt:
"Based on the customer's questions and our product knowledge base, create a detailed comparison of our product features versus their current solution. Format the response with headers for each major feature category and use bullet points to highlight key differences."

Key Features of TEXT and MARKDOWN Prompts

  1. Context-Aware: These prompts can analyze the ongoing conversation in real-time, providing relevant insights and suggestions.

  2. Knowledge Base Integration: They can pull information from your Spinf knowledge base to enrich responses with accurate, up-to-date details.

  3. Customizable Output: You can fine-tune the prompts to generate outputs that match your specific needs and communication style.

  4. Real-Time Analysis: These prompts can be set to run at specific intervals or triggered by certain events in the conversation.

  5. Multi-Lingual Support: Create prompts in any language supported by Spinf for global team usage.

Using TEXT and MARKDOWN Prompts Effectively

  1. Be Specific: Clearly define what you want the AI to analyze or generate.

  2. Leverage Context: Use placeholders like [CONVERSATION] or [KNOWLEDGE_BASE] to ensure the AI considers all relevant information.

  3. Structure Your Output: For MARKDOWN prompts, specify how you want the information formatted (e.g., headers, lists, tables).

  4. Iterate and Refine: Test your prompts and refine them based on the outputs to improve accuracy and relevance.

  5. Combine with Other Prompt Types: Use TEXT and MARKDOWN prompts in conjunction with other types for comprehensive analysis and assistance.

Action Prompts: Empowering Real-Time Automation

The "action" type prompt is a powerful feature that enables the AI assistant to read, analyze, and process the currently selected or opened browser tab/page in real-time, executing tasks described in natural language.

Key features of action prompts:

  1. Real-Time Interaction: The AI can interact with live web pages as they're being used.

  2. Natural Language Instructions: Users can describe tasks in everyday language, just as they would explain them to another person.

  3. Contextual Understanding: The AI can understand and interact with page elements (forms, buttons, links) based on their context and description.

  4. Wide Range of Automations: Action prompts can automate various tasks, including:

    • Filling out forms

    • Sending emails

    • Capturing content from web pages

    • Navigating complex web applications

    • Extracting data from web-based tools

  5. Seamless Integration: Action prompts allow Spinf to integrate with almost any web-based tool or application without requiring specific API integrations.

  6. Human-Like Interaction: The Spinf automation system processes pages similarly to how a person would, allowing for intuitive task descriptions and execution.

Creating Effective Prompts

When creating prompts, especially action prompts, consider the following:

  1. Clarity: Write clear, specific instructions for the AI.

  2. Context: Use expansion labels like [SPACE_DATA], [MIC_TRANSCRIPT], [CONVERSATION] and more to provide context.

  3. Timing: Configure when prompts should run (Pre-Session, In-Session, Post-Session) and how frequently.

  4. Language: Write prompts in any language supported by the service.

  5. Model Selection: Choose the most appropriate LLM model for each prompt based on complexity and cost considerations.

  6. Task Description: For action prompts, describe the task as you would to a human assistant, referencing page elements by their visible labels or contextual clues.

  7. Error Handling: Include instructions for how the AI should handle potential errors or unexpected situations during task execution.

Examples of Action Prompts

  1. Form Filling: "On the customer registration page, fill out the form using the information from our conversation. Use the customer's full name for the 'Name' field, their email for the 'Email' field, and summarize their main interest in the 'Comments' section."

  2. Data Extraction: "Go to our company's pricing page. Extract the prices for all our subscription tiers and compile them into a markdown table."

  3. Email Composition: "Open our email client and compose a follow-up email to the customer. Summarize the key points from our conversation, address any open questions, and provide links to relevant resources we discussed."

The Power of Widgets and Prompts

By effectively using Widgets and Prompts, especially action prompts, you can:

  • Provide real-time guidance to your team during customer interactions

  • Automate repetitive tasks across various web applications

  • Customize the AI's output and actions to match your specific business processes

  • Create dynamic, responsive interfaces that enhance user experience

  • Streamline workflows by integrating AI assistance directly into your existing web-based tools

Understanding and mastering these core concepts - Spaces, Configurations, and Widgets and Prompts (including action prompts) - will empower you to harness the full potential of Spinf. This creates a powerful, customized AI assistant that not only elevates your customer interactions but also significantly enhances your team's productivity through intelligent automation.

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.