> For the complete documentation index, see [llms.txt](https://ajuda.espiaonfe.com.br/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ajuda.espiaonfe.com.br/gestao/nf-e/sped-x-espiao.md).

# SPED x Espião

A funcionalidade **SPED x Espião** permite realizar um comparativo de notas do **arquivo SPED Fiscal** com os documentos armazenados no Espião Cloud.

### 📃 Para realizar o comparativo de notas, siga as etapas a seguir

1. No menu **Outros**, selecione a opção **SPED x Espião.**

<div align="left"><figure><img src="https://1086762934-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FqoJpeeYAUN8570QfuPzY%2Fuploads%2FXiMc9xFRvGLKneL3xNnN%2Fspe.png?alt=media&amp;token=5f2ec65b-ae9f-43b6-8227-e4dd3056f5dd" alt="" width="363"><figcaption></figcaption></figure></div>

2. Selecione o local onde o arquivo está salvo ou solte o arquivo SPED no campo pontilhado para iniciar o comparativo.

<div align="left"><figure><img src="https://1086762934-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FqoJpeeYAUN8570QfuPzY%2Fuploads%2FWw0P8Ed6jRFA2WbXi0Gl%2Fimage.png?alt=media&amp;token=6d61cedf-96dd-49c2-af55-3efea250487e" alt="" width="563"><figcaption></figcaption></figure></div>

3. **Aguarde alguns instantes e será exibido na tela o resultado.**

* **Visualizar Totais:** ao clicar será exibido o resultado total do comparativo no rodapé da pagina.

<div align="left"><figure><img src="https://1086762934-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FqoJpeeYAUN8570QfuPzY%2Fuploads%2FDGkz1lrH2QKZ9U9vCrsJ%2Fvisualizar-totais-sped-espiao.png?alt=media&amp;token=7cf9abb1-b6ef-4747-bb96-1a54be4dd368" alt="" width="563"><figcaption></figcaption></figure></div>

* **Visualizar chaves faltantes no SPED:** Esse botão será habilitado quando houver notas faltantes no SPED comparado ao Espião.

<div align="left"><figure><img src="https://1086762934-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FqoJpeeYAUN8570QfuPzY%2Fuploads%2FTEFwsvyCDGbjruuhXn1a%2Fresultado-sped-espiao.png?alt=media&amp;token=cb24b773-5f43-45b0-9e0e-9db24671ea11" alt="" width="563"><figcaption></figcaption></figure></div>

* **Visualizar chaves faltantes no Espião**: Esse botão será habilitado quando houver notas faltantes no Espião comparado ao SPED.

<div align="left"><figure><img src="https://1086762934-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FqoJpeeYAUN8570QfuPzY%2Fuploads%2Ffjtbg2PRyzZzEDJwf6rA%2Fvisualizar-chaves-faltantes-sped.png?alt=media&amp;token=6557e66c-1f06-4a41-abbc-cecb2be12ec4" alt="" width="488"><figcaption></figcaption></figure></div>

* **Exportar tabela**: Exporta os dados da tabela como um relatório XLSX.

<div align="left"><figure><img src="https://1086762934-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FqoJpeeYAUN8570QfuPzY%2Fuploads%2FHh96JVyj2BROCqB89Fa8%2Fexel-sepd-nfe.png?alt=media&amp;token=517fd3eb-723a-4fd2-90dc-b372a0f3585b" alt="" width="152"><figcaption></figcaption></figure></div>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://ajuda.espiaonfe.com.br/gestao/nf-e/sped-x-espiao.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
