---
schema_version: "1"
id: 8518fc061240017d15276077c7fa09f556f3a47f02b505cba378d9ca71ec4960
title: Agentforce Platform | Answer Questions with Knowledge
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/ai/264-0-0/copilot_actions_ref_answer_questions_with_knowledge.md
canonical_url: https://help.salesforce.com/s/articleView?id=ai.copilot_actions_ref_answer_questions_with_knowledge.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 0b67cabc9a5be871d5d436a0571ea00842d0a6b75b0772998e831895802ec98f
description: Answers a question from a user based on information from relevant knowledge articles and uploaded files.
products:
  - Agentforce
  - Cross Cloud
release: "264"
---
# Agentforce Platform | Answer Questions with Knowledge

Answers a question from a user based on information from relevant knowledge articles and uploaded files.

### Required Editions

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small edition"><colgroup><col></colgroup><tbody><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Available in: Lightning Experience</td></tr><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Available in: <strong>Enterprise</strong>, <strong>Performance</strong>, <strong>Unlimited</strong>, and <strong>Developer</strong> Editions with Foundations, or <strong>Agentforce 1</strong> or <strong>Einstein 1</strong> Editions</td></tr></tbody></table>

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small permission">
        <colgroup>
          <col style="width:50%">
          <col style="width:50%">
        </colgroup>
        <thead class="slds-text-title_caps ">
          <tr class="">
            <th scope="col" class="slds-cell-wrap" style="text-align:center;vertical-align:top;" id="d58955e77">User Permissions Needed</th>
            <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d58955e80">&nbsp;</th>
          </tr>
        </thead>
        <tbody>
          <tr class="">
            <td class="slds-cell-wrap" colspan="2" style="vertical-align:top;" headers="d58955e77 d58955e80 ">See <a href="https://help.salesforce.com/s/articleView?id=ai.agent_actions_common_perms.htm&amp;type=5&amp;language=en_US" target="_blank">Common User Access for Standard Agent
                Actions</a>.</td>

          </tr>
        </tbody>
      </table>

## Action Details

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small ">
        <colgroup>
          <col style="width:50%">
          <col style="width:50%">
        </colgroup>
        <tbody>
          <tr class="">
            <td class="slds-cell-wrap" style="vertical-align:top;">API Name</td>

            <td class="slds-cell-wrap" style="vertical-align:top;">AnswerQuestionsWithKnowledge</td>

          </tr>
          <tr class="">
            <td class="slds-cell-wrap" style="vertical-align:top;">Reference Action Type</td>

            <td class="slds-cell-wrap" style="vertical-align:top;">Standard Action</td>

          </tr>

          <tr class="">
            <td class="slds-cell-wrap" style="vertical-align:top;">Does this action execute one or more prompt templates?</td>

            <td class="slds-cell-wrap" style="vertical-align:top;">Yes</td>

          </tr>
          <tr class="">
            <td class="slds-cell-wrap" style="vertical-align:top;">Required Setup</td>

            <td class="slds-cell-wrap" style="vertical-align:top;">
              <p dir="ltr">If you haven’t set up and configured Data Cloud, see <a href="https://help.salesforce.com/s/articleView?id=data.c360_a_customer360_lm.htm&amp;type=5&amp;language=en_US" target="_blank">Data Cloud Features and Learning Path</a>.</p>
              <p style="margin-bottom:0;" dir="ltr">If you haven’t set up a Data Library, see <a href="https://help.salesforce.com/s/articleView?id=ai.data_library_setup.htm&amp;type=5&amp;language=en_US" target="_blank"><u>Setting Up Data Libraries</u></a>.</p>
            </td>

          </tr>
        </tbody>
      </table>

## Answer Questions with Knowledge and Prompt Templates

This action calls the InvocableKnowledgeSearch internal-only invocable action, which uses the Answer Questions with Knowledge prompt template to provide an answer based off of a user query. See [Answer Questions with Knowledge prompt template](https://help.salesforce.com/s/articleView?id=ai.prompt_builder_answer_questions_with_knowledge.htm&release=264.0.0&type=5 "Enable agents to answer questions using the Answer Questions with Knowledge prompt template in Prompt Builder. Specify what information Einstein includes, or adjust the voice and tone so that answers fit your business needs.").

## Considerations

- The action respects permissions and sharing settings. When generating responses, the action only uses knowledge articles the requesting user can access.
- The action can use these custom knowledge field types to generate responses: Text, Text Area, Text Area (Long), Text Area (Rich). Text (Encrypted) and URL fields aren’t supported.
- The action can use these file upload types to generate responses: text, html, and PDF. You can upload up to 4 MB for text or html files, or 100 MB for PDF files.
- When Agentforce is provisioned in a Salesforce org that has Knowledge, it triggers an initial indexing of knowledge articles. Existing Knowledge-based libraries update if there are changes to knowledge articles, such as the addition of new articles.
- The knowledgeSummary is returned by the LLM. It is based on the instructions in the prompt template, the user query, and retrieved relevant data. The LLM uses these inputs to determine the best pieces of information, or chunks, to use for the response.

#### See Also

- [Agentforce Data Library](https://help.salesforce.com/s/articleView?id=ai.data_library_parent.htm&release=264.0.0&type=5 "Improve accuracy, add personalization, and build trust in gen AI responses when you assign data libraries to your Agentforce features. Agentforce Data Library uses grounding to index your knowledge articles and fields, your file uploads, or web sources, so that AI agents know which information to base responses on. With this index, AI agents can ensure the accuracy of LLM responses against your organization’s information so that you get the best results.")
- [Agentforce: Agents and Copilot](https://help.salesforce.com/s/articleView?id=ai.copilot_intro.htm&type=5&language=en_US)
- [_Trailhead_: Retrieval Augmented Generation: Quick Look](https://trailhead.salesforce.com/content/learn/modules/retrieval-augmented-generation-quick-look)