Cloudastick Systems

Cloudastick Blog

Insights & Updates from the Cloudastick Team

April 21, 2026

Use Prompt Templates to extract and automate data from files

Introduction

Salesforce works best with structured data—but real-life processes rarely start that way.

You deal with:

  • Business cards
  • PDFs
  • Scanned documents
  • Uploaded images

All of these contain valuable information, but none of it is directly usable inside Flow.

With Prompt Templates, you can now take those files, extract meaningful data, and turn them into actionable records—automatically.


What Makes This Powerful

A Prompt Template allows you to:

  • Define reusable AI instructions
  • Pass dynamic inputs (records, variables, or files)
  • Process real file content (not just metadata)

Supported file types:

  • Images (JPG, PNG)
  • PDFs
  • Text files

Limitations:

  • Max file size: 15 MB

Use Case: Business Card to CRM Data

To make this practical, let’s walk through a simple scenario:

  • User uploads or takes a photo of a business card
  • Salesforce extracts the contact details
  • Flow creates or updates records automatically

Step 1: Create a Prompt Template

Template Setup

  • Type: Flex Prompt Template
  • Add a required input:
    • Name: File
    • Source Type: Object
    • Object: File

Prompt Instructions

Define a clear instruction:

You are an AI agent that extracts contact details from a business card photo.
Extract the following fields: First Name, Last Name, Title, Company Name, Email, and Mobile Phone.
Return the response in JSON format.


Expected Output

{
  "FirstName": "Yumi",
  "LastName": "Ibrahimzade",
  "Title": "Salesforce Solution Architect",
  "CompanyName": "Salesforce Time",
  "Email": "info@salesforcetime.com",
  "MobilePhone": "0549000000"
}


Key Configuration

  • Insert the File input into the prompt
  • Select a model (e.g., Google Gemini 2.5 Pro)
  • Set response format to JSON

Test It

Preview the template with a real image:

  • The file is processed
  • Data is extracted
  • JSON is returned

Step 2: Build an Autolaunched Flow

This flow acts as the processor behind the scenes.

Flow Logic

    • InputContent Document Id
    • Get FileRetrieve Content Document record
    • Call Prompt TemplatePass the file as input
  • Extract JSON ValuesMap fields:
      • FirstName
      • LastName
      • Title
      • Email
      • MobilePhone
    • CompanyName
    • Assign OutputsStore values in Flow variables

Step 3: Build the Screen Flow

This is what the user interacts with.


Screen 1: Upload or Capture Image

  • Allow file upload or mobile photo capture
  • Pass the file to the autolaunched flow

Auto Processing

Once the file is uploaded:

  • The screen action calls the autolaunched flow
  • The autolaunched flow calls the Prompt Template
  • Data is returned and mapped automatically

Pre-Filled Fields

All fields (First Name, Last Name, etc.):

  • Are automatically populated
  • Use default values from the processed results

Improve User Experience

Since processing takes a few seconds:

  • Disable input fields while processing
  • Use the “In Progress” flag from the screen action
  • Prevent users from editing incomplete data

Step 4: Create or Update Records

After extracting the data, the Flow continues with logic such as:

Record Handling

  • Check if Lead already exists
  • Check if Contact already exists

Based on Results

  • If exists → create Campaign Member only
  • If not → create Lead + Campaign Member

Example Flow Behavior

  1. User uploads business card
  2. Data is extracted automatically
  3. System checks for duplicates
  4. Creates only what is needed
  5. Assigns final record IDs

End-to-End Flow Summary

  • Capture file
  • Process with AI
  • Extract structured data
  • Validate existing records
  • Create CRM records automatically

Where This Becomes Useful

This is not limited to business cards.

You can use the same approach for:

  • Resume parsing (extract candidate data)
  • Processing invoices or documents
  • Reading screenshots or customer submissions
  • Creating cases from uploaded files

Benefits

  • Eliminates manual data entry
  • Converts unstructured data into usable fields
  • Speeds up operations
  • Reduces errors
  • Improves user experience

Final Thoughts

Prompt Templates unlock a new layer of automation in Salesforce.

Instead of relying only on structured inputs, you can now:

  • Read files
  • Understand content
  • Extract data
  • Act on it instantly

This shifts Flow from simple automation to intelligent data processing—and that’s where things get interesting.

April 16, 2026

Revolutionize Your Enterprise with Headless Technology

Introduction to a New Era of Innovation

The way we work is undergoing a significant transformation. With the rise of headless technology, businesses can now leverage the power of agile innovation to stay ahead of the competition. At the forefront of this revolution is Salesforce Headless 360, a game-changing platform that enables enterprises to build, deploy, and manage agents at scale across every channel.

What is Headless Technology?

Headless technology refers to the ability to access and interact with a platform or system without the need for a traditional user interface. This allows developers to build custom applications and integrations that can be deployed anywhere, without being tied to a specific UI. With Salesforce Headless 360, businesses can now tap into the full potential of their data, workflows, and business logic, and create seamless experiences for their customers and employees.

The Benefits of Headless Technology

The benefits of headless technology are numerous. For one, it enables businesses to build any way they want, using their preferred tools and frameworks. This means that developers can focus on creating innovative solutions, rather than being limited by the constraints of a traditional platform. Additionally, headless technology allows for faster deployment and iteration, as changes can be made quickly and easily, without affecting the underlying system.

Key Features of Salesforce Headless 360

Salesforce Headless 360 offers a range of features that make it an ideal platform for businesses looking to adopt headless technology. Some of the key features include:

  • Agentforce: a powerful tool for building, deploying, and managing agents at scale
  • Data 360: a unified platform for accessing and interacting with business data
  • Customer 360: a comprehensive system for managing customer relationships and workflows
  • Slack Integration: seamless integration with Slack for creating custom applications and experiences

Real-World Applications of Headless Technology

Headless technology is not just a theoretical concept - it has real-world applications that can transform the way businesses operate. For example, companies like Indeed and Grupo Globo are using Salesforce Headless 360 to build custom applications and integrations that improve their customer experiences and streamline their operations. Similarly, businesses like Notion and Docusign are leveraging the power of headless technology to accelerate their sales cycles and improve their productivity.

Getting Started with Headless Technology

If you're interested in learning more about headless technology and how it can benefit your business, we invite you to contact Cloudastick, a leading Salesforce consulting partner. Our team of experts can help you navigate the world of headless technology and develop a customized solution that meets your unique needs and goals. With Cloudastick, you can unlock the full potential of Salesforce Headless 360 and take your business to the next level.

So why wait? Take the first step towards revolutionizing your enterprise with headless technology. Contact Cloudastick today to learn more about our digital transformation and Salesforce consulting services, and discover how we can help you achieve your business goals.